From e66cba36caa14687c392a9e51dab1aab3ac5d68b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Tue, 1 Oct 2024 19:54:41 +0200 Subject: [PATCH] Do not allow to configure a loopback interface in multiple areas --- src/confd/yang/infix/infix-routing.yang | 6 +++++- ...outing@2024-09-23.yang => infix-routing@2024-10-01.yang} | 0 2 files changed, 5 insertions(+), 1 deletion(-) rename src/confd/yang/infix/{infix-routing@2024-09-23.yang => infix-routing@2024-10-01.yang} (100%) diff --git a/src/confd/yang/infix/infix-routing.yang b/src/confd/yang/infix/infix-routing.yang index 1f1f633be..59d7bcb69 100644 --- a/src/confd/yang/infix/infix-routing.yang +++ b/src/confd/yang/infix/infix-routing.yang @@ -26,6 +26,10 @@ module infix-routing { contact "kernelkit@googlegroups.com"; description "Deviations and augments for ietf-routing and ietf-ospf."; + revision 2024-10-01 { + description "Remove possibility to have loopack in multiple areas."; + reference "internal"; + } revision 2024-09-23 { description "Augment static routes with optional route-preference (distance)."; reference "internal"; @@ -272,7 +276,7 @@ module infix-routing { } deviation "/rt:routing/rt:control-plane-protocols/rt:control-plane-protocol/ospf:ospf/ospf:areas/ospf:area/ospf:interfaces/ospf:interface" { deviate add { - must "current()/name = 'lo' or count(../../../../ospf:areas/ospf:area/ospf:interfaces/ospf:interface[ospf:name=current()/name]) <= 1" { + must "count(../../../../ospf:areas/ospf:area/ospf:interfaces/ospf:interface[ospf:name=current()/name]) <= 1" { error-message "Only one area per interface is allowed."; } } diff --git a/src/confd/yang/infix/infix-routing@2024-09-23.yang b/src/confd/yang/infix/infix-routing@2024-10-01.yang similarity index 100% rename from src/confd/yang/infix/infix-routing@2024-09-23.yang rename to src/confd/yang/infix/infix-routing@2024-10-01.yang