summaryrefslogtreecommitdiffstats
path: root/tests/py/ip
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/ip')
-rw-r--r--tests/py/ip/rt.t6
-rw-r--r--tests/py/ip/rt.t.payload5
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/py/ip/rt.t b/tests/py/ip/rt.t
new file mode 100644
index 00000000..99750c5d
--- /dev/null
+++ b/tests/py/ip/rt.t
@@ -0,0 +1,6 @@
+:output;type filter hook input priority 0
+
+*ip;test-ip4;output
+
+rt nexthop 192.168.0.1;ok
+rt nexthop fd00::1;fail
diff --git a/tests/py/ip/rt.t.payload b/tests/py/ip/rt.t.payload
new file mode 100644
index 00000000..93eef4a7
--- /dev/null
+++ b/tests/py/ip/rt.t.payload
@@ -0,0 +1,5 @@
+# rt nexthop 192.168.0.1
+ip test-ip4 output
+ [ rt load nexthop4 => reg 1 ]
+ [ cmp eq reg 1 0x0100a8c0 ]
+