Ejemplo n.º 1
0
def apply_session_helpers(session):
    session.VM = cli_objects.VM(session)
    session.SR = cli_objects.SR(session)
    session.VDI = cli_objects.VDI(session)
    session.VIF = cli_objects.VIF(session)
    session.VBD = cli_objects.VBD(session)
    session.PBD = cli_objects.PBD(session)
    session.PIF = cli_objects.PIF(session)
    session.VLAN = cli_objects.VLAN(session)
    session.host = cli_objects.Host(session)
    session.network = cli_objects.Network(session)
    session.pool = cli_objects.Pool(session)
Ejemplo n.º 2
0
 def test_VIF(self):
     vdi = objects.VIF(self.session)
     vdi.get_X("ref")
     self.session.call_xenapi.assert_called_once_with("VIF.get_X", "ref")