Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

network.interfaces() does not display VLANs on Linux #1398

twinshadow opened this Issue Jun 5, 2012 · 1 comment


None yet
2 participants

twinshadow commented Jun 5, 2012

Python 2.7.3

I've not looked at the network module code, yet. All interfaces should be gathered from /sys/class/net including the VLAN interfaces, and I'm not sure why the VLAN interface is being left out.

What is missing from this output is the interface "eth2.191", which is a VLAN interface.

~ % sudo salt 'aq035' network.interfaces                           
{'aq035': {'eth0': {'broadcast': '',
                    'hwaddr': '00:30:48:c2:2e:b6',
                    'ipaddr': '',
                    'ipaddr6': 'fe80::230:48ff:fec2:2eb6',
                    'netmask': '',
                    'netmask6': '64',
                    'up': True},
           'eth1': {'hwaddr': '00:30:48:c2:2e:b7'},
           'eth2': {'broadcast': None,
                    'hwaddr': '00:07:43:05:f6:e7',
                    'ipaddr': '',
                    'ipaddr6': 'fe80::207:43ff:fe05:f6e7',
                    'netmask': '',
                    'netmask6': '64',
                    'up': True},
           'eth3': {'hwaddr': '00:07:43:05:f6:e8'},
           'ib0': {'hwaddr': '00:00:00:48:fe:80:00:00:00:00:00:00:00:02:c9:03:00:0f:15:97'},
           'ib1': {'hwaddr': '00:00:00:49:fe:80:00:00:00:00:00:00:00:02:c9:03:00:0f:15:98'},
           'lo': {'broadcast': None,
                  'hwaddr': '00:00:00:00:00:00',
                  'ipaddr': '',
                  'ipaddr6': '::1',
                  'netmask': '',
                  'netmask6': '128',
                  'up': True}}}
~ % sudo salt 'aq035' cmd.run "ip addr show eth2.191" 
aq035: 8: eth2.191@eth2:  mtu 1500 qdisc noqueue state UP 
aq035:     link/ether 00:07:43:05:f6:e7 brd ff:ff:ff:ff:ff:ff
aq035:     inet scope global eth2.191
aq035:     inet6 fe80::207:43ff:fe05:f6e7/64 scope link 
aq035:        valid_lft forever preferred_lft forever

thatch45 commented Jun 5, 2012

This needs to be taken care of with #1343

@thatch45 thatch45 closed this Jul 27, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment