mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-02 13:53:01 +02:00
Routing: Fix regression when adding static routes
Add autotest to regresssion suite to catch this
This commit is contained in:
committed by
Joachim Wiberg
parent
4bea414f08
commit
86557e447f
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
- case: static_routing.py
|
||||
Reference in New Issue
Block a user