[node-patches] Change in ovirt-node[master]: Add "identify()" into ""class TaggedNIC"
hadong0720 at gmail.com
hadong0720 at gmail.com
Sat Feb 22 09:09:01 UTC 2014
hadong has uploaded a new change for review.
Change subject: Add "identify()" into ""class TaggedNIC"
......................................................................
Add "identify()" into ""class TaggedNIC"
Change-Id: I2778291bec891d9b19d97b3cf2bdd242ca04787f
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1068847
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M src/ovirt/node/utils/network.py
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/78/24878/1
diff --git a/src/ovirt/node/utils/network.py b/src/ovirt/node/utils/network.py
index 7b73e72..36a9e5c 100644
--- a/src/ovirt/node/utils/network.py
+++ b/src/ovirt/node/utils/network.py
@@ -421,6 +421,7 @@
"""A class to provide easy access to tagged NICs
"""
vlan_nic = None
+ parent_nic = None
def __init__(self, parent_nic, vlanid):
"""A unified API for tagged NICs
@@ -429,6 +430,7 @@
"""
slave_ifname = "%s.%s" % (parent_nic.ifname, vlanid)
super(TaggedNIC, self).__init__(parent_nic.ifname)
+ self.parent_nic = parent_nic
self.vlan_nic = NIC(slave_ifname)
self.config = self.vlan_nic.config
@@ -468,6 +470,9 @@
def has_vlans(self):
raise RuntimeError("Nested tagging is not allowed. Is it?")
+ def identify(self):
+ self.parent_nic.identify()
+
def __str__(self):
pairs = {"vlan": self.vlan_nic.ifname,
"parent": self.ifname}
--
To view, visit http://gerrit.ovirt.org/24878
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2778291bec891d9b19d97b3cf2bdd242ca04787f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>
More information about the node-patches
mailing list