Change in vdsm[master]: netinfo: Retrieve a VLAN's NIC after its ID in getVlanBondin...
osvoboda at redhat.com
osvoboda at redhat.com
Tue Dec 16 08:23:39 UTC 2014
Ondřej Svoboda has posted comments on this change.
Change subject: netinfo: Retrieve a VLAN's NIC after its ID in getVlanBondingNic
......................................................................
Patch Set 1: Verified+1
I created a dummy, a VLAN and a bridge:
ip link add type dummy
ip link add link dummy2 name testvlan type vlan id 321
brctl addbr testbridge
brctl addif testbridge testvlan
On Python command line:
>>> from vdsm import netinfo as ni
>>> ni.getVlanDevice('testvlan')
'dummy2'
>>> ni.getVlanID('testvlan')
321
>>> ni.getVlanBondingNic('testbridge')
(321, '', ['dummy2'])
It also worked with a bond.
--
To view, visit http://gerrit.ovirt.org/36193
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Iae4c4ed1dc4e72451a6187d8a8c6ae01dafe1aed
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ondřej Svoboda <osvoboda at redhat.com>
Gerrit-Reviewer: Amador Pahim <apahim at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Ido Barkan <ibarkan at redhat.com>
Gerrit-Reviewer: Ondřej Svoboda <osvoboda at redhat.com>
Gerrit-Reviewer: Petr Horáček <phoracek at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-HasComments: No
More information about the vdsm-patches
mailing list