def do(): eth_2 = UnityEthernetPort.get(t_rest(), 'spa_eth2') eth_4 = UnityEthernetPort.get(t_rest(), 'spa_eth4') UnityLinkAggregation.create(t_rest(), [eth_2, eth_4], 1500)
def test_modify(self): la = UnityLinkAggregation.get(t_rest(), 'spa_la_2') la.modify(mtu=1500, remove_ports=[UnityEthernetPort.get(t_rest(), "spa_eth2")], add_ports=[UnityEthernetPort.get(t_rest(), "spa_eth4")])
def test_create(self): eth_2 = UnityEthernetPort.get(t_rest(), 'spa_eth2') eth_3 = UnityEthernetPort.get(t_rest(), 'spa_eth3') la = UnityLinkAggregation.create(t_rest(), [eth_2, eth_3], 9000) assert_that(la.get_id(), equal_to('spa_la_2'))