示例#1
0
 def test_create_iscsi_portal(self):
     portal = UnityIscsiPortal.create(cli=t_rest(),
                                      ethernet_port='spa_eth3',
                                      ip="10.244.213.244",
                                      netmask="255.255.255.0",
                                      vlan=133,
                                      gateway="10.244.213.1")
     assert_that(portal.id, equal_to("if_4"))
示例#2
0
 def create_iscsi_portal(self,
                         ethernet_port,
                         ip,
                         netmask=None,
                         v6_prefix_len=None,
                         vlan=None,
                         gateway=None):
     return UnityIscsiPortal.create(cli=self._cli,
                                    ethernet_port=ethernet_port,
                                    ip=ip,
                                    netmask=netmask,
                                    v6_prefix_len=v6_prefix_len,
                                    vlan=vlan,
                                    gateway=gateway)
示例#3
0
 def f():
     UnityIscsiPortal.create(cli=t_rest(),
                             ethernet_port='spa_eth2',
                             ip='10.244.213.244',
                             netmask="255.255.255.0",
                             gateway="10.244.213.1")