def test_properties(self):
     sp = VNXNetworkAdmin(VNXSPEnum.SP_A, t_cli())
     with sp.with_no_poll():
         assert_that(sp.name, equal_to('vnx2_1_52'))
         assert_that(sp.sp, equal_to(VNXSPEnum.SP_A))
         assert_that(sp.link_status, equal_to('Link-Up'))
         assert_that(sp.subnet_mask, equal_to('255.255.255.0'))
         assert_that(sp.ip, equal_to('192.168.1.52'))
         assert_that(sp.ip_mode, equal_to('Manual'))
         assert_that(sp.gateway, equal_to('192.168.1.1'))
         assert_that(sp.virtual_port_id, equal_to(0))
         assert_that(sp.ipv6_enabled, equal_to(False))
         assert_that(sp.port_id, equal_to(0))
         assert_that(sp.vlan_id, equal_to(None))
Example #2
0
 def test_properties(self):
     sp = VNXNetworkAdmin(VNXSPEnum.SP_A, t_cli())
     with sp.with_no_poll():
         assert_that(sp.name, equal_to('vnx2_1_52'))
         assert_that(sp.sp, equal_to(VNXSPEnum.SP_A))
         assert_that(sp.link_status, equal_to('Link-Up'))
         assert_that(sp.subnet_mask, equal_to('255.255.255.0'))
         assert_that(sp.ip, equal_to('192.168.1.52'))
         assert_that(sp.ip_mode, equal_to('Manual'))
         assert_that(sp.gateway, equal_to('192.168.1.1'))
         assert_that(sp.virtual_port_id, equal_to(0))
         assert_that(sp.ipv6_enabled, equal_to(False))
         assert_that(sp.port_id, equal_to(0))
         assert_that(sp.vlan_id, equal_to(None))
Example #3
0
 def spb_ip(self):
     return VNXNetworkAdmin.get_spb_ip(self._cli)
 def test_get_spb_ip(self):
     assert_that(VNXNetworkAdmin.get_spb_ip(t_cli()),
                 equal_to('192.168.1.53'))
Example #5
0
 def test_get_spb_ip(self):
     assert_that(VNXNetworkAdmin.get_spb_ip(t_cli()),
                 equal_to('192.168.1.53'))