From ee3fd1843533528eb3872951730fee6e5802c348 Mon Sep 17 00:00:00 2001 From: Kanzhe Jiang Date: Fri, 29 Mar 2013 18:48:50 +0530 Subject: [PATCH] BigSwitch networking plugin update Update BigSwitch Plugin: . UI support for adding BigSwitch controller as a network service provider . Correct the message format between the plugin and the controller . Add Health check API Test to add a BigSwitch controller as a network service provider and view. Test to implementation of guest network on the controller Test to associate VM to its guest network --- .../classes/resources/messages.properties | 4 + client/tomcatconf/componentContext.xml.in | 13 +- .../tomcatconf/nonossComponentContext.xml.in | 6 + .../commands/DeleteBigSwitchVnsDeviceCmd.java | 4 +- .../commands/ListBigSwitchVnsDevicesCmd.java | 8 +- .../response/BigSwitchVnsDeviceResponse.java | 4 + .../cloud/network/BigSwitchVnsDeviceVO.java | 4 +- .../{Attachment.java => AttachmentData.java} | 42 +- .../network/bigswitch/BigSwitchVnsApi.java | 39 +- .../bigswitch/ControlClusterStatus.java | 4 + .../com/cloud/network/bigswitch/Network.java | 74 ---- .../cloud/network/bigswitch/NetworkData.java | 86 ++++ .../bigswitch/{Port.java => PortData.java} | 70 ++-- .../network/element/BigSwitchVnsElement.java | 14 +- .../guru/BigSwitchVnsGuestNetworkGuru.java | 4 +- .../resource/BigSwitchVnsResource.java | 40 +- .../network/bigswitch/BigSwitchApiTest.java | 18 +- .../resource/BigSwitchVnsResourceTest.java | 44 ++- ui/dictionary.jsp | 5 +- ui/scripts/system.js | 373 +++++++++++++++++- 20 files changed, 648 insertions(+), 208 deletions(-) rename plugins/network-elements/bigswitch-vns/src/com/cloud/network/bigswitch/{Attachment.java => AttachmentData.java} (61%) delete mode 100644 plugins/network-elements/bigswitch-vns/src/com/cloud/network/bigswitch/Network.java create mode 100644 plugins/network-elements/bigswitch-vns/src/com/cloud/network/bigswitch/NetworkData.java rename plugins/network-elements/bigswitch-vns/src/com/cloud/network/bigswitch/{Port.java => PortData.java} (50%) diff --git a/client/WEB-INF/classes/resources/messages.properties b/client/WEB-INF/classes/resources/messages.properties index da224eb3a7a..d62cbaeb99b 100644 --- a/client/WEB-INF/classes/resources/messages.properties +++ b/client/WEB-INF/classes/resources/messages.properties @@ -1582,6 +1582,10 @@ label.nicira.controller.address=Controller Address label.nicira.transportzoneuuid=Transport Zone Uuid label.nicira.l3gatewayserviceuuid=L3 Gateway Service Uuid +label.add.BigSwitchVns.device=Add BigSwitch Vns Controller +label.delete.BigSwitchVns=Remove BigSwitch Vns Controller +label.bigswitch.controller.address=BigSwitch Vns Controller Address + #resizeVolumes label.resize.new.size=New Size(GB) label.action.resize.volume=Resize Volume diff --git a/client/tomcatconf/componentContext.xml.in b/client/tomcatconf/componentContext.xml.in index 3f8277a2222..0b81016d184 100644 --- a/client/tomcatconf/componentContext.xml.in +++ b/client/tomcatconf/componentContext.xml.in @@ -107,12 +107,6 @@ --> - -