doc/demo.sh: Pick IPv6 interface only if it has a nexthop route
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
dc169643a4
commit
f57c2a72e4
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ get_token() {
|
||||||
unset IFS
|
unset IFS
|
||||||
}
|
}
|
||||||
|
|
||||||
ipv6_dev() { get_token "dev" $(ip -o -6 ro show default); }
|
ipv6_dev() { get_token "dev" $(ip -o -6 ro show default | grep via); }
|
||||||
ipv6_devaddr() { get_token "inet6" $(ip -o -6 ad sh dev "${1}" scope global); }
|
ipv6_devaddr() { get_token "inet6" $(ip -o -6 ad sh dev "${1}" scope global); }
|
||||||
ipv6_ll_addr() { get_token "inet6" $(ip -o -6 ad sh dev "${1}" scope link); }
|
ipv6_ll_addr() { get_token "inet6" $(ip -o -6 ad sh dev "${1}" scope link); }
|
||||||
ipv6_mask() { echo ${1#*/}; }
|
ipv6_mask() { echo ${1#*/}; }
|
||||||
|
|
Loading…
Reference in a new issue