aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2019-07-21 21:51:21 -0400
committerZhiyong Yang <zhiyong.yang@intel.com>2019-07-22 21:27:41 -0400
commita58fec168ef5230a4375f81c8eaa1d2912a3ff58 (patch)
tree775affd4feaeaa9919c89d342e22de78c0f85a20
parentc75423981ad2d44c4f2abc5dbe69d6a1a9930d1e (diff)
bonding: fix create bond CLI
1. "numa-only" is optional and is disabled by default for lacp mode. 2. update lacp doc. Type: fix Change-Id: I6a3a8423ef31ad9980353a796957693cd6205d73 Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
-rw-r--r--src/plugins/lacp/lacp_doc.md2
-rw-r--r--src/vnet/bonding/cli.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lacp/lacp_doc.md b/src/plugins/lacp/lacp_doc.md
index fb2bede278c..7df82b5689a 100644
--- a/src/plugins/lacp/lacp_doc.md
+++ b/src/plugins/lacp/lacp_doc.md
@@ -15,7 +15,7 @@ a high bandwidth transmission medium and create a fault-tolerant link.
### Configuration
1. Create the bond interface
-create bond mode lacp [hw-addr <mac-address>] [load-balance { l2 | l23 | l34 }]
+create bond mode lacp [hw-addr <mac-address>] [load-balance { l2 | l23 | l34 } [numa-only]]
2. Enslave the physical interface to the bond
bond add <bond-interface-name> <slave-interface> [passive] [long-timeout]"
diff --git a/src/vnet/bonding/cli.c b/src/vnet/bonding/cli.c
index 371e3c1012c..ec779e263a8 100644
--- a/src/vnet/bonding/cli.c
+++ b/src/vnet/bonding/cli.c
@@ -478,7 +478,7 @@ bond_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
VLIB_CLI_COMMAND (bond_create_command, static) = {
.path = "create bond",
.short_help = "create bond mode {round-robin | active-backup | broadcast | "
- "{lacp | xor} [load-balance { l2 | l23 | l34 } {numa-only}]} [hw-addr <mac-address>] "
+ "{lacp | xor} [load-balance { l2 | l23 | l34 } [numa-only]]} [hw-addr <mac-address>] "
"[id <if-id>]",
.function = bond_create_command_fn,
};