ietf-routing: Add limitation on supported routing-protocols

Only OSPFv3 and Static routes is currently allowed in infix.
This commit is contained in:
Mattias Walström
2024-01-18 14:20:13 +01:00
parent b6d802c46f
commit 3b87a077f9
@@ -172,6 +172,16 @@ module infix-routing {
}
}
deviation "/ietf-r:routing/ietf-r:control-plane-protocols/ietf-r:control-plane-protocol/ietf-r:type" {
deviate add {
must "derived-from-or-self(., 'ospf:ospfv2') or "+
"derived-from-or-self(., 'ietf-r:static')" {
description "Only OSPFv2 and Static routes are supported in Infix.";
}
}
}
augment "/ietf-r:routing/ietf-r:control-plane-protocols/ietf-r:control-plane-protocol/ospf:ospf" {
description "ietf-ospf lack the setting to generate a default route";
container default-route-advertise {