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:
parent
35b286b9ca
commit
d3f9721731
|
@ -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:
|
Alternatively, you can filter out the AS numbers directly using standard tools:
|
||||||
```bash
|
```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
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue