summaryrefslogtreecommitdiff
path: root/src/migration-scripts/webproxy/1-to-2
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-07 20:43:39 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-07 20:43:39 +0200
commit44c67e54ef6ecdf4d7b62e765ccfa4e724c14316 (patch)
tree7bdf260ef533c7319882b0f836143f18179b65fb /src/migration-scripts/webproxy/1-to-2
parent440a7a1c965be39ca0b13b4ea5985dd9c95fabef (diff)
downloadvyos-1x-44c67e54ef6ecdf4d7b62e765ccfa4e724c14316.tar.gz
vyos-1x-44c67e54ef6ecdf4d7b62e765ccfa4e724c14316.zip
policy: T4194: simplify prefix-list duplication checks
Commit 5dafe255d ("policy: T4194: Add prefix-list duplication checks") added first support for FRR prefix-list duplication checks. FRR does not allow to specify the same profix list rule multiple times. vyos(config)# ip prefix-list foo seq 10 permit 192.0.2.0/24 vyos(config)# ip prefix-list foo seq 20 permit 192.0.2.0/24 % Configuration failed. Error type: validation Error description: duplicated prefix list value: 192.0.2.0/24 There is a VyOS verify() function which simply probed for the prefix, action, le and ge settings - but as Python has excellent support when comparing data, this can be as simple as a dictionary comparison using "==".
Diffstat (limited to 'src/migration-scripts/webproxy/1-to-2')
0 files changed, 0 insertions, 0 deletions