Is there a way to stop adding port if tunnel type is not supported. On Fri, Feb 8, 2013 at 12:27 PM, Justin Pettit <jpet...@nicira.com> wrote:
> ovs-vsctl doesn't sanity-check your input, since only ovs-vswitchd is > going to know what's supported. However, ovs-vswitchd did log a message > complaining it was invalid, which you found. > > --Justin > > > On Feb 7, 2013, at 11:25 PM, maryam hanfi <mryamha...@gmail.com> wrote: > > > Yes it works for gre because gre is a supported tunnel type in OVS. But > my question is, if a tunnel type is not support for example gre0 or > mytunnel which are not valid types in OVS, then OVS should throw an error > and should not add it to the configuration. But it is adding unsupported > types in the configuration. > > > > On Fri, Feb 8, 2013 at 12:01 PM, Justin Pettit <jpet...@nicira.com> > wrote: > > Try type "gre", not "gre0". > > > > --Justin > > > > > > On Feb 7, 2013, at 10:49 PM, maryam hanfi <mryamha...@gmail.com> wrote: > > > >> Hi, > >> > >> I am using OVS-1.7.1 and I tried to add gre0 which is an unsupported > type in OVS. It gives me warning and complains about family not supported. > But when I run ovs-vsctl show command, it list gre0 as port with type gre0 > in the datapath. If type is unknown or protocol is not supported should it > not throw an error and fail to create the port? In this case it just gives > the warning and still adds port to the datapath. > >> > >> See output below > >> > >> [root@localhost openvswitch-1.7.1]# ovs-vsctl add-port br1 gre0 -- set > interface gre0 type=gre0 options:remote_ip=1.3.17.234 > >> 2013-02-07T11:44:15Z|00016|netdev|WARN|could not create netdev gre0 of > unknown type gre0 > >> 2013-02-07T11:44:15Z|00017|bridge|WARN|could not open network device > gre0 (Address family not supported by protocol) > >> 2013-02-07T11:44:15Z|00018|bridge|WARN|bridge br1: using default bridge > Ethernet address 62:46:d1:07:b7:4e > >> > >> But ovs-vsctl shows that a port gre0 with type gre0 is been added to > br1. > >> > >> [root@localhost openvswitch-1.7.1]# ovs-vsctl show > >> 35803b12-70e9-433a-a41d-23aecd7e2f74 > >> Bridge "br1" > >> Port "gre0" > >> Interface "gre0" > >> type: "gre0" > >> options: {remote_ip="10.1.1.2"} > >> Port "br1" > >> Interface "br1" > >> type: internal > >> Bridge "br0" > >> Port "eth0" > >> Interface "eth0" > >> Port "br0" > >> Interface "br0" > >> type: internal > >> > >> Regards > >> Maryam > >> _______________________________________________ > >> discuss mailing list > >> discuss@openvswitch.org > >> http://openvswitch.org/mailman/listinfo/discuss > > > >
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss