Esempio n. 1
0
 def f():
     uid = 'iqn.1992-04.com.abc:a.b.c'
     port = VNXConnectionPort.get(sp=VNXSPEnum.SP_A,
                                  port_id=10,
                                  cli=t_cli())[0]
     sg = VNXStorageGroup(cli=t_cli(), name='sg0')
     sg.set_path(port, uid, 'host0')
Esempio n. 2
0
 def f():
     uid = 'iqn.1992-04.com.abc:a.b.d'
     port = VNXConnectionPort.get(sp=VNXSPEnum.SP_A, port_id=8,
                                  vport_id=0, cli=t_cli())
     sg = VNXStorageGroup(cli=t_cli(), name='sg0')
     sg.set_path(port, uid, 'host0')
Esempio n. 3
0
 def test_set_path_with_fc_port_success(self):
     wwn = '01:02:03:04:05:06:07:08:09:0A:0B:0C:0D:0E:0F:10'
     ports = VNXSPPort.get(sp=VNXSPEnum.SP_A, port_id=0, cli=t_cli())
     sg = VNXStorageGroup(cli=t_cli(), name='sg0')
     # no exception
     sg.set_path(ports[0], wwn, 'host0')
Esempio n. 4
0
 def f():
     ports = VNXSPPort.get(sp=VNXSPEnum.SP_A, port_id=0, cli=t_cli())
     sg = VNXStorageGroup(cli=t_cli(), name='sg0')
     sg.set_path(ports[0], '11:22:33', 'host0')
Esempio n. 5
0
 def test_set_path_with_fc_port_success(self):
     wwn = '01:02:03:04:05:06:07:08:09:0A:0B:0C:0D:0E:0F:10'
     ports = VNXSPPort.get(sp=VNXSPEnum.SP_A, port_id=0, cli=t_cli())
     sg = VNXStorageGroup(cli=t_cli(), name='sg0')
     # no exception
     sg.set_path(ports[0], wwn, 'host0')
Esempio n. 6
0
 def f():
     ports = VNXSPPort.get(sp=VNXSPEnum.SP_A, port_id=0, cli=t_cli())
     sg = VNXStorageGroup(cli=t_cli(), name='sg0')
     sg.set_path(ports[0], '11:22:33', 'host0')