summaryrefslogtreecommitdiff
path: root/src/validators/ipv6-link-local
blob: 6ac3ea7100cc98804326fa06e1e4d7517f0b14a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/python3

import sys
from vyos.utils.network import is_ipv6_link_local

if __name__ == '__main__':
    if len(sys.argv)>1:
        addr = sys.argv[1]
        if not is_ipv6_link_local(addr):
            sys.exit(1)

    sys.exit(0)