Best Python code snippet using tempest_python
test_dhcp_ipv6.py
Source:test_dhcp_ipv6.py
...150 'ipv6_ra_mode=Off and ipv6_address_mode=Off,'151 'but shall be taken from fixed IPs') % (152 real_ip, eui_ip))153 @test.idempotent_id('4544adf7-bb5f-4bdc-b769-b3e77026cef2')154 def test_dhcpv6_two_subnets(self):155 """When one IPv6 subnet configured with dnsmasq SLAAC or DHCP stateless156 and other IPv6 is with DHCP stateful, port shall receive EUI-64 IP157 addresses from first subnet and DHCP address from second one.158 Order of subnet creating should be unimportant.159 """160 for order in ("slaac_first", "dhcp_first"):161 for ra_mode, add_mode in (162 ('slaac', 'slaac'),163 ('dhcpv6-stateless', 'dhcpv6-stateless'),164 ):165 kwargs = {'ipv6_ra_mode': ra_mode,166 'ipv6_address_mode': add_mode}167 kwargs_dhcp = {'ipv6_address_mode': 'dhcpv6-stateful'}168 if order == "slaac_first":...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!