diff --git a/astara/api/neutron.py b/astara/api/neutron.py index 39bf39b8..9797f96d 100644 --- a/astara/api/neutron.py +++ b/astara/api/neutron.py @@ -1001,9 +1001,13 @@ class Neutron(object): security_groups=[] ) - if label in constants.ASTARA_SERVICE_PORT_TYPES: + dis_port_types = ( + constants.ASTARA_SERVICE_PORT_TYPES + + constants.ASTARA_MGT_PORT_TYPES + ) + if label in dis_port_types: port_dict['fixed_ips'] = [] - # disable port_securty on VRRP + # disable port_securty on VRRP, LB, MGT if self.conf.neutron_port_security_extension_enabled: port_dict['port_security_enabled'] = False diff --git a/astara/common/constants.py b/astara/common/constants.py index 31020cf1..86582028 100644 --- a/astara/common/constants.py +++ b/astara/common/constants.py @@ -17,3 +17,8 @@ ASTARA_SERVICE_PORT_TYPES = [ 'VRRP', 'LB', ] + + +ASTARA_MGT_PORT_TYPES = [ + 'MGT', +]