summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/network/v2/fakes.py
diff options
context:
space:
mode:
authorBrian Haley <bhaley@redhat.com>2017-11-10 10:58:58 -0500
committerBrian Haley <bhaley@redhat.com>2019-05-06 10:55:13 -0400
commit33a255612c661f174d2cb5d4ca93f8d7096e9290 (patch)
treead4c8a1d71b312f290ad6089f3f11cf637f75dfd /openstackclient/tests/unit/network/v2/fakes.py
parenta71cb02ce94c83a692faec5ec46ded0793b0bd5e (diff)
downloadpython-openstackclient-33a255612c661f174d2cb5d4ca93f8d7096e9290.tar.gz
Change default security group protocol to 'any'
The default protocol used to create a security rule was changed to ``tcp``, which was a regression from the neutron client. Change it back to ``any``, which skips sending the protocol to the API server entirely when using the Neutron v2 API. Users that had been creating rules without specifying a protocol and expecting ``tcp`` need to change to use ``--protocol tcp`` explicitly. Change-Id: Iedaa027240e00dced551513d8fa828564386b79f Closes-bug: #1716789
Diffstat (limited to 'openstackclient/tests/unit/network/v2/fakes.py')
-rw-r--r--openstackclient/tests/unit/network/v2/fakes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/tests/unit/network/v2/fakes.py b/openstackclient/tests/unit/network/v2/fakes.py
index 100ea2b1..e41621a4 100644
--- a/openstackclient/tests/unit/network/v2/fakes.py
+++ b/openstackclient/tests/unit/network/v2/fakes.py
@@ -1305,7 +1305,7 @@ class FakeSecurityGroupRule(object):
'id': 'security-group-rule-id-' + uuid.uuid4().hex,
'port_range_max': None,
'port_range_min': None,
- 'protocol': 'tcp',
+ 'protocol': None,
'remote_group_id': None,
'remote_ip_prefix': '0.0.0.0/0',
'security_group_id': 'security-group-id-' + uuid.uuid4().hex,