@@ -51,6 +51,7 @@ TESTSUITE_AT = \
tests/tunnel.at \
tests/tunnel-push-pop.at \
tests/tunnel-push-pop-ipv6.at \
+ tests/ovs-router.at \
tests/lockfile.at \
tests/reconnect.at \
tests/ovs-vswitchd.at \
new file mode 100644
@@ -0,0 +1,13 @@
+AT_BANNER([appctl route/add with gateway])
+AT_SETUP([appctl - route/add with gateway])
+AT_KEYWORDS([ovs_router])
+AT_XFAIL_IF([test "$IS_WIN32" = "yes"])
+OVS_VSWITCHD_START([add-port br0 p2 -- set Interface p2 type=gre \
+ options:local_ip=2.2.2.2 options:remote_ip=1.1.1.1 \
+ -- add-port br0 p1 -- set interface p1 type=dummy])
+AT_CHECK([ovs-appctl netdev-dummy/ip4addr br0 2.2.2.2/24], [0], [OK
+])
+AT_CHECK([ovs-appctl ovs/route/add 1.1.1.0/24 br0 2.2.2.10], [0], [OK
+])
+OVS_VSWITCHD_STOP
+AT_CLEANUP
@@ -49,6 +49,7 @@ m4_include([tests/jsonrpc-py.at])
m4_include([tests/tunnel.at])
m4_include([tests/tunnel-push-pop.at])
m4_include([tests/tunnel-push-pop-ipv6.at])
+m4_include([tests/ovs-router.at])
m4_include([tests/lockfile.at])
m4_include([tests/reconnect.at])
m4_include([tests/ovs-vswitchd.at])