routing: Add a infix-routing-type to only support selected protocols

Today Infix only support OSPFv2 and Static routes, this hides all other
protocols in the CLI and makes it clearar about what we support in the YANG
model.
This commit is contained in:
Mattias Walström
2024-09-21 08:47:02 +02:00
committed by Joachim Wiberg
parent 948d029062
commit 4083fbf4c5
9 changed files with 42 additions and 30 deletions
+1 -1
View File
@@ -354,7 +354,7 @@ def add_ospf(control_protocols):
return # No OSPF data available
control_protocol = {}
control_protocol["type"] = "ietf-ospf:ospfv2"
control_protocol["type"] = "infix-routing:ospfv2"
control_protocol["name"] = "default"
control_protocol["ietf-ospf:ospf"] = {}
control_protocol["ietf-ospf:ospf"]["ietf-ospf:areas"] = {}