From ff168193a05678df3ee1879095b9c49a1e897154 Mon Sep 17 00:00:00 2001 From: anwars Date: Mon, 6 May 2019 11:23:07 +0530 Subject: [PATCH] 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 --- osm_ro/vimconn_openstack.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.25.1