diff options
author | Anders K. Pedersen <akp@cohaesio.com> | 2016-10-29 03:12:41 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2016-10-29 03:12:41 +0200 |
commit | 6bc84e04c40a2497c4c416556df09e2782059e1c (patch) | |
tree | 459c92b5ec75e84951e9facb42d3361a38ec6784 /tests/py/ip | |
parent | 4a75ed32132d8e2292dd276f3ea7f4edec4f3d06 (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')
-rw-r--r-- | tests/py/ip/rt.t | 6 | ||||
-rw-r--r-- | tests/py/ip/rt.t.payload | 5 |
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 ] + |