From c2926e0bcc2e18122d42983c230d32e73ed6dc04 Mon Sep 17 00:00:00 2001 From: Siva Bavanasi Date: Tue, 10 Feb 2015 19:08:10 +0530 Subject: [PATCH] Closes-Bug: #1420288 - Baremetal: Default security group refs should be set to the port when creating logical interface with a port Change-Id: Ie3cafd2085aa05c3bc29363bf2abd7241f6c55aa --- .../ui/js/physicalinterfaces_config.js | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/webroot/config/physicaldevices/physicalinterfaces/ui/js/physicalinterfaces_config.js b/webroot/config/physicaldevices/physicalinterfaces/ui/js/physicalinterfaces_config.js index eb29bf890..d7c8247fe 100644 --- a/webroot/config/physicaldevices/physicalinterfaces/ui/js/physicalinterfaces_config.js +++ b/webroot/config/physicaldevices/physicalinterfaces/ui/js/physicalinterfaces_config.js @@ -422,8 +422,16 @@ function physicalInterfacesConfig() { }, function(){ //failure + var r = arguments; + showInfoWindow(r[0].responseText,r[2]); + fetchData(); } ); + }).fail(function(){ + //failure + var r = arguments; + showInfoWindow(r[0].responseText,r[2]); + fetchData(); }); } @@ -566,7 +574,16 @@ function physicalInterfacesConfig() { "subnet_uuid": input.subnetId } ], - "virtual_machine_interface_device_owner" : "" + "virtual_machine_interface_device_owner" : "", + "security_group_refs" : [ + { + "to" :[ + curDomain, + curProject, + "default" + ] + } + ] } }; } else { @@ -594,7 +611,16 @@ function physicalInterfacesConfig() { "subnet_uuid": input.subnetId } ], - "virtual_machine_interface_device_owner" : "" + "virtual_machine_interface_device_owner" : "", + "security_group_refs" : [ + { + "to" :[ + curDomain, + curProject, + "default" + ] + } + ] } }; }