diff options
Diffstat (limited to 'docs/sources')
-rw-r--r-- | docs/sources/cli-command-syntax.md | 6 | ||||
-rw-r--r-- | docs/sources/flowspec.md | 20 |
2 files changed, 21 insertions, 5 deletions
diff --git a/docs/sources/cli-command-syntax.md b/docs/sources/cli-command-syntax.md index 7034bfc8..011209e3 100644 --- a/docs/sources/cli-command-syntax.md +++ b/docs/sources/cli-command-syntax.md @@ -80,7 +80,7 @@ The following options can be specified in the global subcommand: | short |long | description | default | |--------|---------------|--------------------------------------------|---------| -|a |address-family |specify any one from among `ipv4`, `ipv6`, `vpnv4`, `vpnv6`, `ipv4-labeled`, `ipv6-labeled`, `evpn`, `encap`, `rtc`, `ipv4-flowspec`, `ipv6-flowspec`, `opaque` | `ipv4` | +|a |address-family |specify any one from among `ipv4`, `ipv6`, `vpnv4`, `vpnv6`, `ipv4-labeled`, `ipv6-labeled`, `evpn`, `encap`, `rtc`, `ipv4-flowspec`, `ipv6-flowspec`, `l2vpn-flowspec`, `opaque` | `ipv4` | <br> @@ -110,7 +110,7 @@ The following options can be specified in the global subcommand: | short |long | description | default | |--------|---------------|--------------------------------------------|---------| -|a |address-family |specify any one from among `ipv4`, `ipv6`, `vpnv4`, `vpnv6`, `ipv4-labeled`, `ipv6-labeld`, `evpn`, `encap`, `rtc`, `ipv4-flowspec`, `ipv6-flowspec`, `opaque` | `ipv4` | +|a |address-family |specify any one from among `ipv4`, `ipv6`, `vpnv4`, `vpnv6`, `ipv4-labeled`, `ipv6-labeld`, `evpn`, `encap`, `rtc`, `ipv4-flowspec`, `ipv6-flowspec`, `l2vpn-flowspec`, `opaque` | `ipv4` | ### 2.3. Show Rib - local-rib/adj-rib-in/adj-rib-out - #### - syntax @@ -132,7 +132,7 @@ The following options can be specified in the neighbor subcommand: | short |long | description | default | |--------|---------------|--------------------------------------------|---------| -|a |address-family |specify any one from among `ipv4`, `ipv6`, `vpnv4`, `vpnv6`, `ipv4-labeled`, `ipv6-labeld`, `evpn`, `encap`, `rtc`, `ipv4-flowspec`, `ipv6-flowspec`, `opaque` | `ipv4` | +|a |address-family |specify any one from among `ipv4`, `ipv6`, `vpnv4`, `vpnv6`, `ipv4-labeled`, `ipv6-labeld`, `evpn`, `encap`, `rtc`, `ipv4-flowspec`, `ipv6-flowspec`, `l2vpn-flowspec`, `opaque` | `ipv4` | ### 2.4. Operations for Policy - add/del/show - diff --git a/docs/sources/flowspec.md b/docs/sources/flowspec.md index 97ab2a85..34c20608 100644 --- a/docs/sources/flowspec.md +++ b/docs/sources/flowspec.md @@ -2,7 +2,8 @@ GoBGP supports [RFC5575](https://tools.ietf.org/html/rfc5575), [draft-ietf-idr-flowspec-redirect-rt-bis-05](http://tools.ietf.org/html/draft-ietf-idr-flowspec-redirect-rt-bis-05) -and [draft-ietf-idr-flow-spec-v6-06](https://tools.ietf.org/html/draft-ietf-idr-flow-spec-v6-06). +, [draft-ietf-idr-flow-spec-v6-06](https://tools.ietf.org/html/draft-ietf-idr-flow-spec-v6-06) +and [draft-ietf-idr-flowspec-l2vpn-03](https://tools.ietf.org/html/draft-ietf-idr-flowspec-l2vpn-03). ## Prerequisites @@ -28,11 +29,15 @@ afi-safis like below. peer-as = 64512 [[neighbors.afi-safis]] afi-safi-name = "ipv4-flowspec" +[[neighbors.afi-safis]] + afi-safi-name = "ipv6-flowspec" +[[neighbors.afi-safis]] + afi-safi-name = "l2vpn-flowspec" ``` ## <a name="section1"> Add Flowspec routes through CLI -CLI syntax to add flowspec is +CLI syntax to add ipv4/ipv6 flowspec rule is ```shell % global rib add match <MATCH_EXPR> then <THEN_EXPR> -a [ipv4-flowspec|ipv6-flowspec] @@ -47,6 +52,17 @@ CLI syntax to add flowspec is <RT> : xxx:yyy, xx.xx.xx.xx:yyy, xxx.xxx:yyy ``` +that for l2vpn flowspec rule is + +``` shell +% global rib add match <MATCH_EXPR> then <THEN_EXPR> -a [l2vpn-flowspec] + <MATCH_EXPR> : { { destination-mac | source-mac } <MAC> | ether-type <ETHER_TYPE> | { llc-dsap | llc-ssap | llc-control | snap | vid | cos | inner-vid | inner-cos } <ITEM>... }... + <ETHER_TYPE> : arp, vmtp, ipx, snmp, net-bios, xtp, pppoe-discovery, ipv4, rarp, ipv6, pppoe-session, loopback, apple-talk, aarp + <ITEM> : &?{<|>|=}<value> + <THEN_EXPR> : { accept | discard | rate-limit <value> | redirect <RT> | mark <value> | action { sample | terminal | sample-terminal } | rt <RT>... }... + <RT> : xxx:yyy, xx.xx.xx.xx:yyy, xxx.xxx:yyy +``` + ### Examples ```shell |