From d3eb845c9b3fa105cfc063b4e81583f12c062e6f Mon Sep 17 00:00:00 2001 From: Job Snijders Date: Tue, 31 Dec 2019 13:11:18 +0100 Subject: [PATCH] Remove -3 option from docs --- README.md | 21 +++------------------ bgpq4.8 | 23 +++-------------------- 2 files changed, 6 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index de33809..161523c 100644 --- a/README.md +++ b/README.md @@ -261,9 +261,9 @@ Of course, `bgpq4` supports IPv6 (-6): ipv6 prefix-list as-retn-v6 permit 2001:7fb:fe01::/48 [....] -and ASN32 +and assumes your device supports 32-bit ASNs - user@host:~>bgpq4 -J3f 112 AS-SPACENET + user@host:~>bgpq4 -Jf 112 AS-SPACENET policy-options { replace: as-path-group NN { @@ -274,22 +274,7 @@ and ASN32 } } -see `AS196611` in the end of the list ? That's `AS3.3` in 'asplain' notation. - -If your router does not support ASN32 (yet) you should not use switch -3, -and the result will be next: - - user@host:~>bgpq4 -f 112 AS-SPACENET - no ip as-path access-list NN - ip as-path access-list NN permit ^112( 112)*$ - ip as-path access-list NN permit ^112( [0-9]+)* (1898|5539|8495|8763)$ - ip as-path access-list NN permit ^112( [0-9]+)* (8878|12136|12931|15909)$ - ip as-path access-list NN permit ^112( [0-9]+)* (21358|23456|23600|24151)$ - ip as-path access-list NN permit ^112( [0-9]+)* (25152|31529|34127|34906)$ - ip as-path access-list NN permit ^112( [0-9]+)* (35052|41720|43628|44450)$ - -`AS196611` is no more in the list, however, `AS23456` (transition AS) would -have been added to list if it were not present. +see `AS196611` in the end of the list ? That's a 32-bit ASN. USER-DEFINED FORMAT ------------------- diff --git a/bgpq4.8 b/bgpq4.8 index b62aaf9..29a8b07 100644 --- a/bgpq4.8 +++ b/bgpq4.8 @@ -219,10 +219,10 @@ ipv6 prefix-list as-retn-6 permit 2001:7fb:fe01::/48 [....] .RE .fi -and support for ASN 32 is also here +and assumes your device supports 32-bit ASNs .nf .RS -~>bgpq4 -J3f 112 AS-SPACENET +~>bgpq4 -Jf 112 AS-SPACENET policy-options { replace: as-path-group NN { @@ -234,25 +234,8 @@ replace: } .RE .fi -see AS196611 in the end of the list ? That's AS3.3 in 'asplain' notation. +see `AS196611` in the end of the list ? That's a 32-bit ASN. .Pp -For non-ASN32 capable routers you should not use switch -3, -and the result will be next: -.nf -.RS -~>bgpq4 -f 112 AS-SPACENET -no ip as-path access-list NN -ip as-path access-list NN permit ^112(_112)*$ -ip as-path access-list NN permit ^112(_[0-9]+)*_(1898|5539|8495|8763)$ -ip as-path access-list NN permit ^112(_[0-9]+)*_(8878|12136|12931|15909)$ -ip as-path access-list NN permit ^112(_[0-9]+)*_(21358|23456|23600|24151)$ -ip as-path access-list NN permit ^112(_[0-9]+)*_(25152|31529|34127|34906)$ -ip as-path access-list NN permit ^112(_[0-9]+)*_(35052|41720|43628|44450)$ -.RE -.fi -.Pp -AS196611 is no more in the list, however, AS23456 (transition AS) -would be added to list if it were not present. .Sh USER-DEFINED FORMAT If you want to generate configuration not for routers, but for some other programs/systems, you may use user-defined formatting, like in