From df7c3fc0017fb27d2945ac2818ac2d5fc343ca37 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 15 Sep 2026 13:51:30 -0500 Subject: T7886: add basic cases of reverse interface dependency verification Add cases for which a config mode script calls verify_interface_exists, excluding those of dynamic_interface_pattern, to be handled separately. The dependency verification raises error, resp., gives a warning, when verify_interface_exists is called with warning_only=False, resp., True. These are the critical cases that motivated the original design, for if a removal of an interface is allowed, a subsequent reboot will raise ConfigError on config load and invalidate the config subtree for that component. --- .../include/constraint/dependent-error-interface-name.xml.i | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 interface-definitions/include/constraint/dependent-error-interface-name.xml.i (limited to 'interface-definitions/include/constraint/dependent-error-interface-name.xml.i') diff --git a/interface-definitions/include/constraint/dependent-error-interface-name.xml.i b/interface-definitions/include/constraint/dependent-error-interface-name.xml.i new file mode 100644 index 000000000..ec4d524f4 --- /dev/null +++ b/interface-definitions/include/constraint/dependent-error-interface-name.xml.i @@ -0,0 +1,7 @@ + + + (bond|br|dum|en|ersp|eth|gnv|ifb|ipoe|lan|l2tp|l2tpeth|macsec|peth|ppp|pppoe|pptp|sstp|sstpc|tun|veth|vpptap|vpptun|vti|vtun|vxlan|wg|wlan|wwan)[0-9]+(.\d+)?|pod-[-_a-zA-Z0-9]{1,11}|lo + + + + -- cgit v1.2.3