On Tue, Aug 22, 2017 at 2:43 PM, Arturo Borrero Gonzalez
<[email protected]> wrote:
> On 21 August 2017 at 22:55, Shyam Saini <[email protected]> wrote:
>> These cases can be used to test upcoming "import json" command.
>>
>> Here is the short description of the files:
>> all_ruleset_list -> contains list of all the individual rules
>> rules_ipv4* -> ip table
>> rules_ipv6* -> ip6 table
>> rules_arp* -> arp table
>> rules_bridge* -> bridge table
>>
>> At this point of time some tests may fails.
>> For example:
>> dup to 172.20.0.2
>> ether daddr 00:01:02:03:04:05 ether saddr set ff:fe:dc:ba:98:76 drop
>>
>
> Hi Shyam,
Hi Arturo,
> thanks for your work!
>
> A question: How are we supposed to run these tests? At least, any hint
> would be welcome in the commit message.
I missed that part.
Thanks for the correcting me.
Probably an small bash script looping over all the rules* files and running
"cat $i | sudo nft import json"
if [$? -ne 0]
echo "[Failed]" $i
else
echo "[OK]" $i
Anything more that you would like to add in this script ?
Should I send the version 2 of this patch with this script?
Regards,
Shyam
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html