Skip to content

Commit

Permalink
Do not allow to configure a loopback interface in multiple areas
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaswal committed Oct 1, 2024
1 parent cf5e8ad commit e66cba3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/confd/yang/infix/infix-routing.yang
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ module infix-routing {
contact "[email protected]";
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";
Expand Down Expand Up @@ -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.";
}
}
Expand Down
File renamed without changes.

0 comments on commit e66cba3

Please sign in to comment.