Re: [RFC PATCH net-next 00/12] selftests: forwarding: Add VRF-based tests

2018-01-18 Thread Andrew Lunn
> > > >> > > > >> br0 > > > >> + > > > >>vrf-h1 | vrf-h2 > > > >> ++---+++ > > > >> |||| > > > >> 192.0.2.1/24 ++

Re: [RFC PATCH net-next 00/12] selftests: forwarding: Add VRF-based tests

2018-01-17 Thread Ido Schimmel
Hi Andrew, Florian On Thu, Jan 18, 2018 at 12:11:11AM +0100, Andrew Lunn wrote: > > >> However, a similar kind of flexibility can be achieved by using VRFs and > > >> by looping the switch ports together. For example: > > >> > > >> br0 > > >>

Re: [RFC PATCH net-next 00/12] selftests: forwarding: Add VRF-based tests

2018-01-17 Thread Andrew Lunn
> >> However, a similar kind of flexibility can be achieved by using VRFs and > >> by looping the switch ports together. For example: > >> > >> br0 > >> + > >>vrf-h1 | vrf-h2 > >> +

Re: [RFC PATCH net-next 00/12] selftests: forwarding: Add VRF-based tests

2018-01-17 Thread Florian Fainelli
On 01/15/2018 12:14 PM, David Ahern wrote: > On 1/15/18 12:18 PM, Ido Schimmel wrote: >> One of the nice things about network namespaces is that they allow one >> to easily create and test complex environments. >> >> Unfortunately, these namespaces can not be used with actual switching >> ASICs, as

Re: [RFC PATCH net-next 00/12] selftests: forwarding: Add VRF-based tests

2018-01-15 Thread Ido Schimmel
On Mon, Jan 15, 2018 at 04:48:25PM -0700, David Ahern wrote: > On 1/15/18 4:17 PM, Jiri Pirko wrote: > >> A couple of feature requests: > >> 1. an option to pause on any error to allow inspection of the setup > > > > Good idea. Should be easy to add. > > Here is a snippet from my vrf test script:

Re: [RFC PATCH net-next 00/12] selftests: forwarding: Add VRF-based tests

2018-01-15 Thread David Ahern
On 1/15/18 4:17 PM, Jiri Pirko wrote: >> A couple of feature requests: >> 1. an option to pause on any error to allow inspection of the setup > > Good idea. Should be easy to add. Here is a snippet from my vrf test script: PAUSE_ON_FAIL=no -p option sets PAUSE_ON_FAIL=yes log_test() { l

Re: [RFC PATCH net-next 00/12] selftests: forwarding: Add VRF-based tests

2018-01-15 Thread Jiri Pirko
Mon, Jan 15, 2018 at 09:14:56PM CET, dsah...@gmail.com wrote: >On 1/15/18 12:18 PM, Ido Schimmel wrote: >> One of the nice things about network namespaces is that they allow one >> to easily create and test complex environments. >> >> Unfortunately, these namespaces can not be used with actual swi

Re: [RFC PATCH net-next 00/12] selftests: forwarding: Add VRF-based tests

2018-01-15 Thread David Ahern
On 1/15/18 12:18 PM, Ido Schimmel wrote: > One of the nice things about network namespaces is that they allow one > to easily create and test complex environments. > > Unfortunately, these namespaces can not be used with actual switching > ASICs, as their ports can not be migrated to other network

[RFC PATCH net-next 00/12] selftests: forwarding: Add VRF-based tests

2018-01-15 Thread Ido Schimmel
One of the nice things about network namespaces is that they allow one to easily create and test complex environments. Unfortunately, these namespaces can not be used with actual switching ASICs, as their ports can not be migrated to other network namespaces (NETIF_F_NETNS_LOCAL) and most of them