Commit 1b35637e authored by Ana Cabral's avatar Ana Cabral Committed by Ana Cabral
Browse files

ipv4_spurious_leftover_route test: remove needed adjust to fail scenarios

https://bugzilla.redhat.com/show_bug.cgi?id=2005013
parent 5aed936d
......@@ -2203,6 +2203,7 @@ Feature: nmcli: ipv4
@rhbz1979192
@ver+=1.32.6
@ver-=1.32.8
@con_ipv4_remove @teardown_testveth
@ipv4_spurious_leftover_route
Scenario: NM - ipv4 - NetworkManager configures wrong, spurious "local" route for IP address after DHCP address change
......@@ -2227,3 +2228,27 @@ Feature: nmcli: ipv4
* Execute "sleep 1; ip l set testX6 up"
When "192.168.99.5" is visible with command "ip -4 r show table all dev testX6 scope link" in "60" seconds
Then "192.168.99.[34]" is not visible with command "ip -4 r show table all dev testX6 scope link"
@rhbz1979192
@ver+=1.32.10
@con_ipv4_remove @teardown_testveth
@ipv4_spurious_leftover_route
Scenario: NM - ipv4 - NetworkManager configures wrong, spurious "local" route for IP address after DHCP address change
* Prepare simulated test "testX6" device without DHCP
* Execute "ip -n testX6_ns addr add dev testX6p 192.168.99.1/24"
* Run child "ip netns exec testX6_ns dnsmasq --pid-file=/tmp/testX6_ns.pid --listen-address=192.168.99.1 --conf-file=/dev/null --no-hosts --dhcp-range=192.168.99.30,192.168.99.39,2m" without shell
* Add a new connection of type "ethernet" and options "ifname testX6 con-name testX6"
* Bring "up" connection "testX6"
* Execute "pkill -F /tmp/testX6_ns.pid"
* Execute "ip l set testX6 down"
* Run child "ip netns exec testX6_ns dnsmasq --pid-file=/tmp/testX6_ns.pid --listen-address=192.168.99.1 --conf-file=/dev/null --no-hosts --dhcp-range=192.168.99.40,192.168.99.49,2m" without shell
* Execute "ip l set testX6 up"
When "192.168.99.4" is visible with command "ip -4 r show table all dev testX6 scope link" in "60" seconds
Then "192.168.99.3" is not visible with command "ip -4 r show table all dev testX6 scope link"
* Execute "pkill -F /tmp/testX6_ns.pid"
* Execute "ip l set testX6 down"
* Run child "ip netns exec testX6_ns dnsmasq --pid-file=/tmp/testX6_ns.pid --listen-address=192.168.99.1 --conf-file=/dev/null --no-hosts --dhcp-range=192.168.99.50,192.168.99.59,2m" without shell
* Execute "ip l set testX6 up"
When "192.168.99.5" is visible with command "ip -4 r show table all dev testX6 scope link" in "60" seconds
Then "192.168.99.[34]" is not visible with command "ip -4 r show table all dev testX6 scope link"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment