Added test keywords which should be ignored by IPv4 and IPv6

This commit is contained in:
David Murphy 2021-06-04 11:28:41 -06:00 committed by Megan Wilhite
parent 2f6e204fa2
commit 98e3a8e566

View file

@ -524,6 +524,7 @@ default via 192.168.0.1 dev wlp59s0 proto dhcp metric 600
192.240.157.233 via 10.16.119.224 dev gpd0
206.80.50.33 via 10.16.119.224 dev gpd0
209.34.94.97 via 10.16.119.224 dev gpd0
unreachable should ignore this
"""
mock_iproute_ipv6 = """::1 dev lo proto kernel metric 256 pref medium
2060:123:4069::10 dev enp5s0 proto kernel metric 100 pref medium
@ -590,6 +591,13 @@ multicast ff00::/8 dev docker0 table local proto kernel metric 256 linkdown pref
multicast ff00::/8 dev wlp3s0 table local proto kernel metric 256 pref medium
multicast ff00::/8 dev vpn0 table local proto kernel metric 256 pref medium
multicast ff00::/8 dev tun0 table local proto kernel metric 256 pref medium
unicast should ignore this
broadcast cast should ignore this
throw should ignore this
unreachable should ignore this
prohibit should ignore this
blackhole should ignore this
nat should ignore this
"""
self.assertRaises(CommandExecutionError, network.default_route, "family")