Discussion:
[netcf-devel] [netcf] why netcf doesn't support the ifcfg file parameter for naming a vlan device differently from "$physdev.$vlantag" ?
l***@gmail.com
2016-11-24 07:36:08 UTC
Permalink
As tiltled, we want to netcf support ifcfg file parameter for naming device can be differently from "$physdev.$vlantag".
as case 2 and case 4
1. VLAN_NAME_TYPE_RAW_PLUS_VID
ame will look like: eth0.0012

2. VLAN_NAME_TYPE_PLUS_VID_NO_PAD
Name will look like: vlan12


3. VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
Name will look like: eth0.12

4. VLAN_NAME_TYPE_PLUS_VID
Name will look like: vlan0012

I have a case of: error: XML error: vlan interface misses the tag attribute

by below steps.

1) Define the vlan interface with ifcfg-vlan1292

VLAN=yes
VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD
DEVICE=vlan1292
PHYSDEV=en5sp0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.254.5.254
NETMASK=255.255.255.0
TYPE=Ethernet
NM_CONTROLLED=no

2)ifup and ifdown this vlan1292
#ifup ifcfg-vlan1292
#ifdown ifcfg-vlan1292

3)# virsh iface-list --all
Name State MAC Address
---------------------------------------------------
en5sp0 active 02:38:53:00:76:00
lo active 00:00:00:00:00:00
vlan1292 inactive

# virsh iface-dumpxml vlan1292
error: XML error: vlan interface misses the tag attribute

4) setup active and dumpxml
# ifup ifcfg-vlan1292
# virsh iface-list --all
Name State MAC Address
---------------------------------------------------
en5sp0 active 02:38:53:00:76:00
lo active 00:00:00:00:00:00
vlan1292 active 02:38:53:00:76:00

# virsh iface-dumpxml vlan1292
<interface type='vlan' name='vlan1292'>
<protocol family='ipv4'>
<ip address='10.254.5.254' prefix='24'/>
</protocol>
<protocol family='ipv6'>
<ip address='fe80::38:53ff:fe00:7600' prefix='64'/>
</protocol>
<link speed='1000' state='up'/>
<vlan tag='1292'>
<interface name='en5sp0'/>
</vlan>
</interface>
_______________________________________________
netcf-devel mailing list -- netcf-***@lists.fedorahosted.org
To unsubscribe send an email to netcf-devel-

Loading...