mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
xend: Implement VIF.get_network
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
1 parent
744b0f3be1
commit
41c06ea3f5
1 file changed
+3
@@ -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')]
|
||||
|
||||