Skip to content

Commit fcafe13

Browse files
Andrey-mpopencontrail-ci-admin
authored andcommitted
Merge "openstack: fix supported protocols for SGRs"
2 parents 16bdcf9 + 82c7b92 commit fcafe13

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,10 +1737,7 @@ def _security_group_rule_neutron_to_vnc(self, sgr_q, oper):
17371737
sgr_q['protocol'] = 'any'
17381738

17391739
invalid = False
1740-
protos = ['any',
1741-
constants.PROTO_NAME_TCP,
1742-
constants.PROTO_NAME_UDP,
1743-
constants.PROTO_NAME_ICMP]
1740+
protos = ['any'] + list(constants.IP_PROTOCOL_MAP.keys())
17441741
if sgr_q['protocol'].isdigit():
17451742
protocol = int(sgr_q['protocol'])
17461743
if protocol < 0 or protocol > 255:

0 commit comments

Comments
 (0)