def runTest(self): if not wlan: self.skipTest("skipping test no wlan") self.fip = lan.get_interface_ipaddr(lan.iface_dut) self.rip = wlan.get_interface_ipaddr("wlan0") wlan.sendline('iwconfig') wlan.expect(prompt) super(iPerfBiDirTestLANtoWLAN, self).runTest(node1=wlan, node2=lan, firewall=False)
def runTest(self): # Router board.sendline('uci set network.lan6=interface') board.expect(prompt) board.sendline('uci set network.lan6.proto=static') board.expect(prompt) board.sendline('uci set network.lan6.ip6addr=4aaa::1/64') board.expect(prompt) board.sendline('uci set network.lan6.ifname=@lan') board.expect(prompt) board.sendline('uci set network.wan6=interface') board.expect(prompt) board.sendline('uci set network.wan6.proto=static') board.expect(prompt) board.sendline('uci set network.wan6.ip6addr=5aaa::1/64') board.expect(prompt) board.sendline('uci set network.wan6.ifname=@wan') board.expect(prompt) board.sendline('uci commit network') board.expect(prompt) board.network_restart() # Lan-side Device lan.sendline('\nip -6 addr add 4aaa::6/64 dev %s' % lan.iface_dut) lan.expect('ip -6') lan.expect(prompt) lan.sendline('ip -6 route add 4aaa::1 dev %s' % lan.iface_dut) lan.expect(prompt) lan.sendline('ip -6 route add default via 4aaa::1 dev %s' % lan.iface_dut) lan.expect(prompt) if 'No route to host' in lan.before: raise Exception('Error setting ivp6 routes') # Wan-side Device wan.sendline('\nip -6 addr add 5aaa::6/64 dev %s' % wan.iface_dut) wan.expect('ip -6') wan.expect(prompt) wan.sendline('ip -6 route add 5aaa::1 dev %s' % wan.iface_dut) wan.expect(prompt) wan.sendline('ip -6 route add default via 5aaa::1 dev %s' % wan.iface_dut) wan.expect(prompt) if 'No route to host' in wan.before: raise Exception('Error setting ivp6 routes') # Wlan-side Device if wlan: wlan.sendline('\nip -6 addr add 4aaa::7/64 dev wlan0') wlan.expect('ip -6') wlan.expect(prompt) wlan.sendline('ip -6 route add 4aaa::1 dev eth1') wlan.expect(prompt) wlan.sendline('ip -6 route add default via 4aaa::1 dev wlan0') wlan.expect(prompt) # Give things time to get ready time.sleep(20) # Check addresses board.sendline('\nifconfig | grep -B2 addr:') board.expect('ifconfig ') board.expect(prompt) lan.sendline('\nifconfig | grep -B2 addr:') lan.expect('ifconfig ') lan.expect(prompt) wan.sendline('\nifconfig | grep -B2 addr:') wan.expect('ifconfig ') wan.expect(prompt)
def runTest(self): if not wlan: self.skipTest("skipping test no wlan") wlan.sendline('iwconfig') wlan.expect(prompt) super(iPerfBiDirTestWLAN, self).runTest(node1=wlan, node2=wan)
def runTest(self): if not wlan: self.skipTest("skipping test no wlan") wlan.sendline('iwconfig') wlan.expect(prompt) super(iPerfReverseTestWLAN, self).runTest(client=wan, server=wlan)