xend: Implement VIF.get_network

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2009-09-18 08:44:38 +01:00
1 parent 744b0f3be1
commit 41c06ea3f5
1 file changed
+3
+3
View File
@@ -2197,6 +2197,9 @@ class XendAPI(object):
def VIF_get_device(self, session, vif_ref):
return self._VIF_get(vif_ref, 'device')
def VIF_get_network(self, session, vif_ref):
return self._VIF_get(vif_ref, 'network')
def VIF_get_all(self, session):
xendom = XendDomain.instance()
vifs = [d.get_vifs() for d in XendDomain.instance().list('all')]
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.