bonding: fix create bond CLI 63/20763/2
authorZhiyong Yang <zhiyong.yang@intel.com>
Mon, 22 Jul 2019 01:51:21 +0000 (21:51 -0400)
committerZhiyong Yang <zhiyong.yang@intel.com>
Tue, 23 Jul 2019 01:27:41 +0000 (21:27 -0400)
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>
src/plugins/lacp/lacp_doc.md
src/vnet/bonding/cli.c

index fb2bede..7df82b5 100644 (file)
@@ -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]"
index 371e3c1..ec779e2 100644 (file)
@@ -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,
 };