diff --git a/src/confd/yang/confd.inc b/src/confd/yang/confd.inc index 8c3cd34d..6f9c6af5 100644 --- a/src/confd/yang/confd.inc +++ b/src/confd/yang/confd.inc @@ -31,7 +31,7 @@ MODULES=( "ieee802-dot1q-types@2022-10-29.yang" "infix-ip@2025-11-02.yang" "infix-if-type@2026-01-07.yang" - "infix-routing@2026-03-04.yang" + "infix-routing@2026-03-11.yang" "ieee802-dot1ab-lldp@2022-03-15.yang" "infix-lldp@2025-05-05.yang" "infix-dhcp-common@2025-12-21.yang" diff --git a/src/confd/yang/confd/infix-routing.yang b/src/confd/yang/confd/infix-routing.yang index e11fe080..535d0f1e 100644 --- a/src/confd/yang/confd/infix-routing.yang +++ b/src/confd/yang/confd/infix-routing.yang @@ -26,7 +26,7 @@ module infix-routing { contact "kernelkit@googlegroups.com"; description "Deviations and augments for ietf-routing, ietf-ospf, and ietf-rip."; - revision 2026-03-04 { + revision 2026-03-11 { description "Remove interface-type deviation to expose standard ietf-ospf interface types including point-to-multipoint and hybrid. Un-deviate static-neighbors for non-broadcast P2MP support."; @@ -452,6 +452,13 @@ module infix-routing { } /* OSPF Area Interface */ + deviation "/rt:routing/rt:control-plane-protocols/rt:control-plane-protocol/ospf:ospf/ospf:areas/ospf:area/ospf:interfaces/ospf:interface/ospf:static-neighbors/ospf:neighbor" { + deviate add { + must "../../ospf:interface-type = 'point-to-multipoint' or ../../ospf:interface-type = 'non-broadcast'" { + error-message "Static neighbors are only applicable to point-to-multipoint or non-broadcast interface types."; + } + } + } deviation "/rt:routing/rt:control-plane-protocols/rt:control-plane-protocol/ospf:ospf/ospf:areas/ospf:area/ospf:interfaces/ospf:interface/ospf:multi-areas" { deviate not-supported; } diff --git a/src/confd/yang/confd/infix-routing@2026-03-04.yang b/src/confd/yang/confd/infix-routing@2026-03-11.yang similarity index 100% rename from src/confd/yang/confd/infix-routing@2026-03-04.yang rename to src/confd/yang/confd/infix-routing@2026-03-11.yang