From: anwars Date: Mon, 6 May 2019 05:53:07 +0000 (+0530) Subject: Disable port security at network creation (openstack) X-Git-Tag: v6.0.0~18 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=commitdiff_plain;h=ff168193a05678df3ee1879095b9c49a1e897154 Disable port security at network creation (openstack) Feature : https://osm.etsi.org/gerrit/#/c/7326 Introducing a new VIM config parameter for openstack VIM, disable_network_port_security This will allow to disable the port security while creating networks in openstack To be used for VIM which has port security extension but do not support port security (Network creation fails with error that Port security is not supported) Change-Id: I3822f0d76450cceec50fc757ad273ab11f414d13 Signed-off-by: anwars --- diff --git a/osm_ro/vimconn_openstack.py b/osm_ro/vimconn_openstack.py index 3515ef68..b7bcda23 100644 --- a/osm_ro/vimconn_openstack.py +++ b/osm_ro/vimconn_openstack.py @@ -571,6 +571,8 @@ class vimconnector(vimconn.vimconnector): network_dict["provider:segmentation_id"] = self._generate_vlanID() network_dict["shared"] = shared + if self.config.get("disable_network_port_security"): + network_dict["port_security_enabled"] = False new_net = self.neutron.create_network({'network':network_dict}) # print new_net # create subnetwork, even if there is no profile