From a58fec168ef5230a4375f81c8eaa1d2912a3ff58 Mon Sep 17 00:00:00 2001 From: Zhiyong Yang Date: Sun, 21 Jul 2019 21:51:21 -0400 Subject: 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 --- src/plugins/lacp/lacp_doc.md | 2 +- src/vnet/bonding/cli.c | 2 +- 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 ] [load-balance { l2 | l23 | l34 }] +create bond mode lacp [hw-addr ] [load-balance { l2 | l23 | l34 } [numa-only]] 2. Enslave the physical interface to the bond bond add [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 ] " + "{lacp | xor} [load-balance { l2 | l23 | l34 } [numa-only]]} [hw-addr ] " "[id ]", .function = bond_create_command_fn, }; -- cgit 1.2.3-korg