Revision 9af43a69 src/cli/one_helper/onevnet_helper.rb

View differences:

src/cli/one_helper/onevnet_helper.rb
102 102
        :description=> "Netmask in dot notation"
103 103
    ]
104 104

  
105
    VLAN = [
106
        :name       => "vlan",
107
        :large      => "--vlan",
108
        :description=> "Use network isolation"
105
    VN_MAD = [
106
        :name       => "vn_mad",
107
        :large      => "--vn_mad",
108
        :description=> "Use this driver for the network"
109 109
    ]
110 110

  
111 111
    VLAN_ID = [
......
116 116
    ]
117 117

  
118 118
    ADDAR_OPTIONS = [
119
        SIZE, MAC, IP, IP6_GLOBAL, IP6_ULA, GATEWAY, NETMASK, VLAN, VLAN_ID ]
119
        SIZE, MAC, IP, IP6_GLOBAL, IP6_ULA, GATEWAY, NETMASK, VN_MAD, VLAN_ID ]
120 120

  
121 121
    def self.rname
122 122
        "VNET"
......
212 212
        puts str % ["CLUSTERS",
213 213
            OpenNebulaHelper.clusters_str(vn.retrieve_elements("CLUSTERS/ID"))]
214 214
        puts str % ["BRIDGE", vn["BRIDGE"]]
215
        puts str % ["VLAN", OpenNebulaHelper.boolean_to_str(vn['VLAN'])]
215
        puts str % ["VN_MAD", vn['VN_MAD']] if !vn['VN_MAD'].empty?
216 216
        puts str % ["PHYSICAL DEVICE", vn["PHYDEV"]] if !vn["PHYDEV"].empty?
217 217
        puts str % ["VLAN ID", vn["VLAN_ID"]] if !vn["VLAN_ID"].empty?
218 218
        puts str % ["USED LEASES", vn['USED_LEASES']]

Also available in: Unified diff