[one-users] No filed for VLAN_ID when adding a new network?

Daniel Molina dmolina at opennebula.org
Thu Jun 6 08:57:02 PDT 2013


Hi,


On 6 June 2013 16:43, Dmitri Chebotarov <dchebota at gmu.edu> wrote:

>  Hi
>
>  I think Sunstore's interface is missing VLAN_ID field when adding a new
> network with VLAN set to YES (i.e. OVS model).
> I'm pretty sure it was there before 4.0.1 - I have few networks which I've
> created on 4.0 with VLAN_ID set, before I updated to 4.0.1.
>
>  This is what it shows in my case (print screen attached)
>

Indeed, that is a bug. Could you try applying the following patch?

---------8<----------------
diff --git a/src/sunstone/public/js/plugins/vnets-tab.js
b/src/sunstone/public/js/plugins/vnets-tab.js
index 792b960..e33a8a2 100644
--- a/src/sunstone/public/js/plugins/vnets-tab.js
+++ b/src/sunstone/public/js/plugins/vnets-tab.js
@@ -1190,6 +1190,7 @@ function setupCreateVNetDialog() {
             $('input#phydev,label[for="phydev"]',$create_vn_dialog).hide();
             $('select#vlan,label[for="vlan"]',$create_vn_dialog).show();

 $('input#vlan_id,label[for="vlan_id"]',$create_vn_dialog).show();
+            break;
         case "vmware":
             $('input#bridge,label[for="bridge"]',$create_vn_dialog).show();
             $('input#phydev,label[for="phydev"]',$create_vn_dialog).hide();
@@ -1197,9 +1198,6 @@ function setupCreateVNetDialog() {

 $('input#vlan_id,label[for="vlan_id"]',$create_vn_dialog).show();
             break;
         };
-
-        if (!mustBeAdmin())
-
 $('input#vlan_id,label[for="vlan_id"]',$create_vn_dialog).hide();
     });

     //Initialize shown options

--------->8----------------



-- 
Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in Berlin, 24-26
September, 2013
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130606/a90a0931/attachment-0001.htm>


More information about the Users mailing list