diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-11-14 14:02:59 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-11-21 10:56:23 +0900 |
commit | 4132d4815d10c69868cf2ba9746515560021daaa (patch) | |
tree | 6d41009e33333e812e9af6bb94b709c197386bea | |
parent | 051b335b663272a79216fa62c866fabe4c9d4441 (diff) |
gobgp/cmd/global: Align indentation in usage
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
-rw-r--r-- | gobgp/cmd/global.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gobgp/cmd/global.go b/gobgp/cmd/global.go index e434b10f..cedf19a7 100644 --- a/gobgp/cmd/global.go +++ b/gobgp/cmd/global.go @@ -959,18 +959,18 @@ func modPath(resource string, name, modtype string, args []string) error { fsHelpMsgFmt := fmt.Sprintf(`err: %s usage: %s rib %s%%smatch <MATCH_EXPR> then <THEN_EXPR> -a %%s %%s - <THEN_EXPR> : { %s | %s | %s <value> | %s <RT> | %s <value> | %s { sample | terminal | sample-terminal } | %s <RT>... }... - <RT> : xxx:yyy, xx.xx.xx.xx:yyy, xxx.xxx:yyy`, err, cmdstr, modtype, + <THEN_EXPR> : { %s | %s | %s <value> | %s <RT> | %s <value> | %s { sample | terminal | sample-terminal } | %s <RT>... }... + <RT> : xxx:yyy, xx.xx.xx.xx:yyy, xxx.xxx:yyy`, err, cmdstr, modtype, ExtCommNameMap[ACCEPT], ExtCommNameMap[DISCARD], ExtCommNameMap[RATE], ExtCommNameMap[REDIRECT], ExtCommNameMap[MARK], ExtCommNameMap[ACTION], ExtCommNameMap[RT]) ipFsMatchExpr := fmt.Sprintf(` <MATCH_EXPR> : { %s <PREFIX> [<OFFSET>] | %s <PREFIX> [<OFFSET>] | %s <PROTO>... | %s [!] [=] <FRAGMENT_TYPE> | %s [!] [=] <TCPFLAG>... | { %s | %s | %s | %s | %s | %s | %s | %s } <ITEM>... }... - <PROTO> : %s - <FRAGMENT_TYPE> : dont-fragment, is-fragment, first-fragment, last-fragment, not-a-fragment - <TCPFLAG> : %s - <ITEM> : & {<|<=|>|>=|==|!=}<value>`, + <PROTO> : %s + <FRAGMENT_TYPE> : dont-fragment, is-fragment, first-fragment, last-fragment, not-a-fragment + <TCPFLAG> : %s + <ITEM> : & {<|<=|>|>=|==|!=}<value>`, bgp.FlowSpecNameMap[bgp.FLOW_SPEC_TYPE_DST_PREFIX], bgp.FlowSpecNameMap[bgp.FLOW_SPEC_TYPE_SRC_PREFIX], bgp.FlowSpecNameMap[bgp.FLOW_SPEC_TYPE_IP_PROTO], @@ -992,8 +992,8 @@ usage: %s rib %s%%smatch <MATCH_EXPR> then <THEN_EXPR> -a %%s helpErrMap[bgp.RF_FS_IPv4_VPN] = fmt.Errorf(fsHelpMsgFmt, " rd <RD> ", "ipv4-l3vpn-flowspec", ipFsMatchExpr) helpErrMap[bgp.RF_FS_IPv6_VPN] = fmt.Errorf(fsHelpMsgFmt, " rd <RD> ", "ipv6-l3vpn-flowspec", ipFsMatchExpr) macFsMatchExpr := fmt.Sprintf(` <MATCH_EXPR> : { { %s | %s } <MAC> | %s <ETHER_TYPE> | { %s | %s | %s | %s | %s | %s | %s | %s } <ITEM>... }... - <ETHER_TYPE> : %s - <ITEM> : &?{<|>|=}<value>`, + <ETHER_TYPE> : %s + <ITEM> : &?{<|>|=}<value>`, bgp.FlowSpecNameMap[bgp.FLOW_SPEC_TYPE_DST_MAC], bgp.FlowSpecNameMap[bgp.FLOW_SPEC_TYPE_SRC_MAC], bgp.FlowSpecNameMap[bgp.FLOW_SPEC_TYPE_ETHERNET_TYPE], |