From 3b87a077f948ff51d703328af0a3365c4ab9fd2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Thu, 18 Jan 2024 13:03:35 +0100 Subject: [PATCH] ietf-routing: Add limitation on supported routing-protocols Only OSPFv3 and Static routes is currently allowed in infix. --- src/confd/yang/infix-routing@2024-01-09.yang | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/confd/yang/infix-routing@2024-01-09.yang b/src/confd/yang/infix-routing@2024-01-09.yang index 6365d2b9..8373bd32 100644 --- a/src/confd/yang/infix-routing@2024-01-09.yang +++ b/src/confd/yang/infix-routing@2024-01-09.yang @@ -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 {