diff options
author | Björn Hemfjäll <25451914+bgh88@users.noreply.github.com> | 2021-06-22 23:51:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 21:51:01 +0000 |
commit | 86b6d04c3d00e93e391bdbc1c7788789a9d4c8fe (patch) | |
tree | 68db4f3955a36a02b20a86211da1c7ddda4e14c4 /tests | |
parent | a8e806d61fc1e4fd88592bee7e501fbe259cca99 (diff) | |
download | vyos-ansible-old-86b6d04c3d00e93e391bdbc1c7788789a9d4c8fe.tar.gz vyos-ansible-old-86b6d04c3d00e93e391bdbc1c7788789a9d4c8fe.zip |
static route fixes (#165)
static route fixes
Reviewed-by: https://github.com/apps/ansible-zuul
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/modules/network/vyos/test_vyos_static_routes.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/unit/modules/network/vyos/test_vyos_static_routes.py b/tests/unit/modules/network/vyos/test_vyos_static_routes.py index d284b66..d92efa2 100644 --- a/tests/unit/modules/network/vyos/test_vyos_static_routes.py +++ b/tests/unit/modules/network/vyos/test_vyos_static_routes.py @@ -94,7 +94,8 @@ class TestVyosStaticRoutesModule(TestVyosModule): admin_distance=10, ), dict( - forward_router_address="192.0.2.10" + forward_router_address="192.0.2.10", + interface="eth0", ), ], ) @@ -111,6 +112,7 @@ class TestVyosStaticRoutesModule(TestVyosModule): "set protocols static route 192.0.2.48/28 next-hop '192.0.2.9'", "set protocols static route 192.0.2.48/28 next-hop 192.0.2.9 distance '10'", "set protocols static route 192.0.2.48/28 next-hop '192.0.2.10'", + "set protocols static route 192.0.2.48/28 next-hop 192.0.2.10 next-hop-interface 'eth0'", ] self.execute_module(changed=True, commands=commands) @@ -157,7 +159,8 @@ class TestVyosStaticRoutesModule(TestVyosModule): dest="192.0.2.48/28", next_hops=[ dict( - forward_router_address="192.0.2.9" + forward_router_address="192.0.2.9", + interface="eth0", ), dict( forward_router_address="192.0.2.10", @@ -176,6 +179,7 @@ class TestVyosStaticRoutesModule(TestVyosModule): commands = [ "set protocols static route 192.0.2.48/28", "set protocols static route 192.0.2.48/28 next-hop '192.0.2.9'", + "set protocols static route 192.0.2.48/28 next-hop 192.0.2.9 next-hop-interface 'eth0'", "set protocols static route 192.0.2.48/28 next-hop '192.0.2.10'", "set protocols static route 192.0.2.48/28 next-hop 192.0.2.10 distance '10'", ] |