From d3f9721731cbe8cfcb807f23a5cfbd90c9bd2fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20K=C3=BCthe?= Date: Tue, 18 Jul 2023 16:38:26 +0200 Subject: [PATCH] Include small AS number in test script In the previous version, an AS number had to have at least five digits to be recognized. However, since Clearnet ASNs can also be registered in dn42, small AS numbers should also be allowed. --- docs/additional/dn42-interconnection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/additional/dn42-interconnection.md b/docs/additional/dn42-interconnection.md index 8ba2513..8049540 100644 --- a/docs/additional/dn42-interconnection.md +++ b/docs/additional/dn42-interconnection.md @@ -103,5 +103,5 @@ This is the line which is interesting because you can see there who is currently Alternatively, you can filter out the AS numbers directly using standard tools: ```bash -ssh shell@collector.dn42 show route where bgp_path.last = 4242423182 all 2>/dev/null | grep -P "^\tBGP.as_path: " | grep -Po "(\d{5,10}) 4242423182" | awk '{ split($0,ary," "); print ary[1] }' | sort | uniq +ssh shell@collector.dn42 show route where bgp_path.last = 4242423182 all 2>/dev/null | grep -P "^\tBGP.as_path: " | grep -Po "(\d{1,10}) 4242423182" | awk '{ split($0,ary," "); print ary[1] }' | sort | uniq ```