lease_time='2m')
# Sleep for 120 sec as the dnsmasq minimum lease time can only be set to 120
- print('Wait for the dynamic address to be renewed')
- time.sleep(125)
+ print('Wait for the DHCP lease to be expired')
+ time.sleep(120)
self.wait_online(['veth99:routable', 'veth-peer:routable'])
start_dnsmasq(ipv6_range='2600::30,2600::40', lease_time='2m')
# Sleep for 120 sec as the dnsmasq minimum lease time can only be set to 120
- print('Wait for the dynamic address to be renewed')
- time.sleep(125)
+ print('Wait for the DHCP lease to be expired')
+ time.sleep(120)
self.wait_online(['veth99:routable'])
stop_dnsmasq()
# Sleep for 120 sec as the dnsmasq minimum lease time can only be set to 120
- print('Wait for the dynamic address to be expired')
- time.sleep(125)
+ print('Wait for the DHCP lease to be expired')
+ time.sleep(120)
print('The lease address should be kept after lease expired')
output = check_output('ip address show dev veth99 scope global')
output = check_output('ip -4 address show dev veth99 scope link')
self.assertNotRegex(output, r'inet 169\.254\.\d+\.\d+/16 metric 2048 brd 169\.254\.255\.255 scope link')
- print('Wait for the dynamic address to be expired')
- time.sleep(130)
+ print('Wait for the DHCP lease to be expired')
+ time.sleep(120)
output = check_output('ip address show dev veth99')
print(output)
self.verify_dhcp4_6rd(tunnel_name)
- # Test for renewing/rebinding lease
- print('wait for 120 sec')
- time.sleep(30)
- print('wait for 90 sec')
- time.sleep(30)
- print('wait for 60 sec')
- time.sleep(30)
- print('wait for 30 sec')
- time.sleep(30)
+ print('Wait for the DHCP lease to be expired')
+ time.sleep(120)
dump_dnsmasq_log_file()