Revision 9af43a69 src/vnm/AddressRange.cc
src/vnm/AddressRange.cc | ||
---|---|---|
166 | 166 |
return -1; |
167 | 167 |
} |
168 | 168 |
|
169 |
/* ------------------------- VNET Attributes ---------------------------- */ |
|
170 |
|
|
171 |
bool b_vlan; |
|
172 |
|
|
173 |
if ((vattr->vector_value("VLAN", b_vlan) == 0) && b_vlan) |
|
174 |
{ |
|
175 |
vattr->replace("VLAN", "YES"); |
|
176 |
} |
|
177 |
|
|
178 | 169 |
/* ------------------------- Security Groups ---------------------------- */ |
179 | 170 |
|
180 | 171 |
value = vattr->vector_value("SECURITY_GROUPS"); |
... | ... | |
816 | 807 |
|
817 | 808 |
string vn_mad = attr->vector_value("VN_MAD"); |
818 | 809 |
string bridge = attr->vector_value("BRIDGE"); |
819 |
string vlan = attr->vector_value("VLAN"); |
|
820 | 810 |
string vlanid = attr->vector_value("VLAN_ID"); |
821 | 811 |
string phydev = attr->vector_value("PHYDEV"); |
822 | 812 |
|
... | ... | |
830 | 820 |
nic->replace("BRIDGE", bridge); |
831 | 821 |
} |
832 | 822 |
|
833 |
if (!vlan.empty()) |
|
834 |
{ |
|
835 |
nic->replace("VLAN", vlan); |
|
836 |
} |
|
837 |
|
|
838 | 823 |
if (!phydev.empty()) |
839 | 824 |
{ |
840 | 825 |
nic->replace("PHYDEV", phydev); |
Also available in: Unified diff