]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: py: any: Make tests more generic by using other interfaces
authorManuel Johannes Messner <manuel.johannes.messner@hs-furtwangen.de>
Mon, 5 Sep 2016 18:20:13 +0000 (20:20 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 6 Sep 2016 11:09:57 +0000 (13:09 +0200)
commita8871ba6daa0ae70f6ea51e9fbbfaaad409bbab3
tree31707c1ad2987a2426217fdb1ff869ea101431bd
parent3e5b0e406cf2b635200f9ee05ba8a158528fe622
tests: py: any: Make tests more generic by using other interfaces

Some tests use hard coded interface names and interface indexes.
This commit removes these cases by exchanging "eth0" with "dummy0" and
"lo" (depending on the test) in all ifname tests and by using "lo"
instead of "eth0" in all interface index tests (because we can assume
"lo" ifindex is 1).

Signed-off-by: Manuel Johannes Messner <manuel.johannes.messner@hs-furtwangen.de>
Signed-off-by: Florian Westphal <fw@strlen.de>
tests/py/any/meta.t
tests/py/any/meta.t.payload