netdev: Prevent using reserved names
authorAlex Wang <alexw@nicira.com>
Thu, 16 May 2013 21:11:51 +0000 (14:11 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 16 May 2013 21:03:17 +0000 (14:03 -0700)
commit94a538422d4b05449097e5ad07ac25b05429f1fe
tree39d9049ff0cb553bfbcf94e3587f0c538334fbfc
parentaaa4b65b23707ca772c3d571353a65bf3838df9a
netdev: Prevent using reserved names

This commit adds a function to lib/netdev.c to check that the interface name
is not the same as any of the registered vport providers' dpif_port name
(e.g. gre_system) or the datapath's internal port name (e.g. ovs-system).

Bug #15077.
Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netdev-vport.c
lib/netdev-vport.h
lib/netdev.c
lib/netdev.h
ofproto/tunnel.c
tests/ovs-vsctl.at
vswitchd/bridge.c