Routing: Fix regression when adding static routes

Add autotest to regresssion suite to catch this
This commit is contained in:
Mattias Walström
2023-12-07 14:52:00 +01:00
committed by Joachim Wiberg
parent 4bea414f08
commit 86557e447f
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ static int change_control_plane_protocols(sr_session_ctx_t *session, uint32_t su
const char *type;
type = lydx_get_cattr(cplane, "type");
if (!strcmp(type, "ietf-routing:static")) {
if (!strcmp(type, "static")) {
staticd_enabled = parse_static_routes(session, lydx_get_child(cplane, "static-routes"), fp);
}
}
+3
View File
@@ -10,5 +10,8 @@
- name: infix-interfaces
suite: infix_interfaces/all.yaml
- name: ietf-routing
suite: ietf_routing/all.yaml
#- name: infix-services
# suite: infix_services/all.yaml
+2
View File
@@ -0,0 +1,2 @@
---
- case: static_routing.py