summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/rt.t.payload
diff options
context:
space:
mode:
authorAnders K. Pedersen <akp@cohaesio.com>2016-10-29 03:12:41 +0200
committerFlorian Westphal <fw@strlen.de>2016-10-29 03:12:41 +0200
commit6bc84e04c40a2497c4c416556df09e2782059e1c (patch)
tree459c92b5ec75e84951e9facb42d3361a38ec6784 /tests/py/ip/rt.t.payload
parent4a75ed32132d8e2292dd276f3ea7f4edec4f3d06 (diff)
Replace tests/files/expr-rt with Python based tests, and replace ether type
with meta nfproto, which generates a bit fewer instructions. Signed-off-by: Anders K. Pedersen <akp@cohaesio.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/ip/rt.t.payload')
-rw-r--r--tests/py/ip/rt.t.payload5
1 files changed, 5 insertions, 0 deletions
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 ]
+