Hi Pablo,
On fre, 2016-10-28 at 10:43 +0200, Pablo Neira Ayuso wrote:
> One comment though, it would be great if you can send me a follow up
> patch to update
>
> On Fri, Oct 28, 2016 at 05:56:32AM +0000, Anders K. Pedersen |
> Cohaesio wrote:
> >
> > diff --git a/tests/files/expr-rt b/tests/files/expr-rt
> > new file mode 100644
> > index 0000000..4c15409
> > --- /dev/null
> > +++ b/tests/files/expr-rt
> > @@ -0,0 +1,21 @@
> > +#! nft -f
> > +
> > +add table ip filter
> > +add chain ip filter output { type filter hook output priority 0 ;
> > }
> > +
> > +add table ip6 filter
> > +add chain ip6 filter output { type filter hook output priority 0 ;
> > }
> > +
> > +add table inet filter
> > +add chain inet filter output { type filter hook output priority 0
> > ; }
> > +
> > +# rt: classid (see /etc/iproute2/rt_realms)
> > +add rule ip filter output rt classid cosmos counter
> > +add rule ip6 filter output rt classid cosmos counter
> > +add rule inet filter output rt classid cosmos counter
> > +
> > +# rt: nexthop
> > +add rule ip filter output rt nexthop 192.168.0.1 counter
> > +add rule ip6 filter output rt nexthop fd00::1 counter
> > +add rule inet filter output ether type ip rt nexthop 192.168.0.1
> > counter
> > +add rule inet filter output ether type ip6 rt nexthop fd00::1
> > counter
>
> Please, move this test to tests/py/inet/rt.t
>
> You will also need to generate the rt.t.payload* files, it should be
> easy to generate them, just a bit timeconsuming janitoring task, but
> definitely not hard.
OK, I'll try to figure it out and send you a follow up patch.
Regards,
Anders K. Pedersen