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.
This commit is contained in:
Marek Küthe 2023-07-18 16:38:26 +02:00
parent 35b286b9ca
commit d3f9721731
No known key found for this signature in database
GPG Key ID: 7E869146699108C7
1 changed files with 1 additions and 1 deletions

View File

@ -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
```