Juniper / contrail-neutron-plugin

Opencontrail Neutron plugin + extensions
Apache License 2.0
17 stars 69 forks source link

Update port fails with KeyError in case of ips update #97

Open evgenyfedoruk opened 5 years ago

evgenyfedoruk commented 5 years ago

When update port request comes with 'fixed_ips' attribute, meaning port ips are updated, KeyError raised and request fails.

The issue is with the '_update_ips_for_port' function of NeutronPluginContrailCoreBase class in contrail_plugin_base module. It accesses the cfg.CONF.max_fixed_ips_per_port parameter which no longer exists, since N release. It should check the parameter existence first, like 'if hasattr(cfg.CONF, 'max_fixed_ips_per_port')'.