mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-04 06:43:00 +02:00
Add limitation on one area/interface
Since this is a limitation in FRR.
This commit is contained in:
committed by
Joachim Wiberg
parent
c8f7d0ee1c
commit
17409d1686
@@ -157,6 +157,14 @@ module infix-routing {
|
||||
}
|
||||
}
|
||||
}
|
||||
deviation "/ietf-r:routing/ietf-r:control-plane-protocols/ietf-r: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" {
|
||||
error-message "Only one area per interface is allowed.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
deviation "/ietf-r:routing/ietf-r:ribs/ietf-r:rib/ietf-r:routes/ietf-r:route/ospf:metric" {
|
||||
deviate not-supported;
|
||||
|
||||
Reference in New Issue
Block a user