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

import sys
from vyos.validate 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)