summaryrefslogtreecommitdiff
path: root/src/migration-scripts/dns-forwarding/0-to-1
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-23 09:45:25 +0100
committerChristian Breunig <christian@breunig.cc>2024-03-23 10:07:59 +0100
commitf7250ecf1d119f14d72f99ee379deaaae0790f0e (patch)
tree7d34bc04873662722e0d9d43451477b627e1f690 /src/migration-scripts/dns-forwarding/0-to-1
parentdb08b6bd2300b125541e7eaa35e98ae5a2225111 (diff)
downloadvyos-1x-f7250ecf1d119f14d72f99ee379deaaae0790f0e.tar.gz
vyos-1x-f7250ecf1d119f14d72f99ee379deaaae0790f0e.zip
vyos.configverify: T6131: verify_interface_exists() checks CLI interfaces, too
Extend the way how we determine if interfaces exist in VyOS. In the past we only validated if the interface in question really exists at the OS level. This has some drawbacks as services (like OSPF or OSPFv3) can also handle interfaces dynamically which appear or leaf the OS. This commit not only checks for OS interfaces but also if the interface in question was configured at the CLI level, this is proof enough to pass the check. If it does not exist at the CLI level, we continue searching it it's maybe a Kernel interface - useful for container networks. In addition we can now not only raise() an error but simply show a warning if an interface does not exist.
Diffstat (limited to 'src/migration-scripts/dns-forwarding/0-to-1')
0 files changed, 0 insertions, 0 deletions