Skip to content

Commit a18c63a

Browse files
author
kush1093
committed
Ocata Development LBaaSv2 driver issue with ML2 portbinding extension
Issues: Fixes #894 Problem:Ocata Development LBaaSv2 driver issue with ML2 portbinding extension Analysis:As neutron.extensions.portbindings.EXTENDED_NEUTRON_CONST_2_0 dicti -onar is absent in Ocata, i commented out the lines wherever the attribute "binding:capabilities" was encountered in the code. Tests:Created and ran the test "f5lbaasdriver/v2/bigip/test/test_plugin_rpc.py"
1 parent 10075fd commit a18c63a

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

f5lbaasdriver/v2/bigip/plugin_rpc.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -540,10 +540,6 @@ def create_port_on_subnet(self, context, subnet_id=None,
540540
port_data[portbindings.VNIC_TYPE] = vnic_type
541541
port_data[portbindings.PROFILE] = binding_profile
542542

543-
#if ('binding:capabilities' in
544-
# portbindings.EXTENDED_ATTRIBUTES_2_0['ports']):
545-
# port_data['binding:capabilities'] = {
546-
# 'port_filter': False}
547543
port = self.driver.plugin.db._core_plugin.create_port(
548544
context, {'port': port_data})
549545
# Because ML2 marks ports DOWN by default on creation
@@ -704,9 +700,6 @@ def create_port_on_network(self, context, network_id=None,
704700
port_data[portbindings.VNIC_TYPE] = vnic_type
705701
port_data[portbindings.PROFILE] = binding_profile
706702

707-
#extended_attrs = portbindings.EXTENDED_ATTRIBUTES_2_0['ports']
708-
#if 'binding:capabilities' in extended_attrs:
709-
# port_data['binding:capabilities'] = {'port_filter': False}
710703
port = self.driver.plugin.db._core_plugin.create_port(
711704
context, {'port': port_data})
712705
# Because ML2 marks ports DOWN by default on creation

0 commit comments

Comments
 (0)