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:46 +0000 (11:50 -0700)
commitb25702bc920b14cb2bf7b832c6f14a1dc44d203b
tree3efd009f362dfacced9a83f4ac7f88c80177fcc8
parent951a98739d2b84916885b6da9d1ec4beb2361ba7
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