ovs-appctl: register unixctl commands in the beginning
authorHuanle Han <hanxueluo@gmail.com>
Wed, 15 Jul 2015 15:41:05 +0000 (23:41 +0800)
committerBen Pfaff <blp@nicira.com>
Thu, 16 Jul 2015 18:50:25 +0000 (11:50 -0700)
commit0fc1f5c04c8c1a9ac461da8c6ab88dee680a5ab3
treea4217c1eadf2d385e62ad4688b84b11b3832143f
parent3f11b876befc0629ca2a174546fa3f6b43d44e81
ovs-appctl: register unixctl commands in the beginning

Some commands of ovs-appctl were lazily registered when first
bridg or bfd was added. Before that, calling these commands raised a
error("xxx is not a valid command"). The problem commangs included
"bfd/...", "upcall/...","dpif/...","fdb/..." and so on.

Fix this by moving the register into the "bridge_init" and
"bridge_init_ofproto". All commands are registered at the moment
ovs-vswitchd starts.

Signed-off-by: Huanle Han <hanxueluo@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/bfd.c
lib/bfd.h
ofproto/ofproto-dpif-upcall.c
ofproto/ofproto-dpif-upcall.h
ofproto/ofproto-dpif.c
ofproto/ofproto.c
vswitchd/bridge.c