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

Closed
twinshadow opened this Issue Jun 5, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

twinshadow commented Jun 5, 2012

Salt 0.9.9.1
Python 2.7.3
Archlinux

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': '10.7.175.255',
                    'hwaddr': '00:30:48:c2:2e:b6',
                    'ipaddr': '10.7.161.6',
                    'ipaddr6': 'fe80::230:48ff:fec2:2eb6',
                    'netmask': '255.255.240.0',
                    'netmask6': '64',
                    'up': True},
           'eth1': {'hwaddr': '00:30:48:c2:2e:b7'},
           'eth2': {'broadcast': None,
                    'hwaddr': '00:07:43:05:f6:e7',
                    'ipaddr': '1.3.1.2',
                    'ipaddr6': 'fe80::207:43ff:fe05:f6e7',
                    'netmask': '255.255.255.0',
                    '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': '127.0.0.1',
                  'ipaddr6': '::1',
                  'netmask': '255.0.0.0',
                  '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 1.3.2.2/24 scope global eth2.191
aq035:     inet6 fe80::207:43ff:fe05:f6e7/64 scope link 
aq035:        valid_lft forever preferred_lft forever
Owner

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