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

Dmitri Chebotarov dchebota at gmu.edu
Thu Jun 6 10:53:26 PDT 2013


Thank you. It worked. 

On Jun 6, 2013, at 11:57 , Daniel Molina <dmolina at opennebula.org> wrote:

> 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 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



--
Thank you,

Dmitri Chebotarov
VCL Sys Eng, Engineering & Architectural Support, TSD - Ent Servers & Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175 | Fax: (703) 993-3404






More information about the Users mailing list