class Bonding(NeworkTestSuite): """ :avocado: enable """ if_prefix = "tt" def setUp(self): super().setUp() self.veth1 = Veth(self.machine, self.if_prefix + "sla1") self.bond = Bond(self.machine, self.if_prefix + "bnd") self.bond.attach_member(self.veth1.left) self.bond.set_ipv4("192.168.223.150/24", "192.168.1.1") self.reload_frame() def tearDown(self): super().tearDown() self.bond.cleanup() self.veth1.cleanup() self.bond.remove_connections("^" + self.if_prefix) def testMemberRemove(self): self.wait_css("#networking-interfaces tr[data-interface='%s'] button" % self.bond.name, cond=clickable) self.click( self.wait_css( "#networking-interfaces tr[data-interface='%s'] button" % self.bond.name, cond=clickable)) self.click( self.wait_css("tr[data-interface='%s'] button" % self.veth1.left.name, cond=clickable)) self.click(self.wait_link("Networking", cond=clickable))
def setUp(self): super().setUp() self.veth1 = Veth(self.machine, self.if_prefix + "sla1") self.bond = Bond(self.machine, self.if_prefix + "bnd") self.bond.attach_member(self.veth1.left) self.bond.set_ipv4("192.168.223.150/24", "192.168.1.1") self.reload_frame()
def testBasePage(self): self.wait_id("networking-interfaces") with Veth(self.machine, "ttiface") as veth: veth.left.set_ipv4("192.168.226.22/24", "192.168.226.1") veth.left.con_up() self.wait_xpath("//tr[@data-interface='{}']".format( veth.left.name))