diff options
author | Maria Matejka <mq@ucw.cz> | 2022-09-20 09:14:39 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-09-20 09:14:39 +0200 |
commit | 28427a68c32d5684652dd22400a9143722294886 (patch) | |
tree | 874b81f35a54974ca79479e124f12fa04d143592 /nest/proto.c | |
parent | 29712c691d4f2cadb6517e3759bdf5e60b1fb4d9 (diff) | |
parent | adf37d8eff8f281871295c402a51ae1dd654851c (diff) |
Merge commit 'adf37d8e' into thread-next
Diffstat (limited to 'nest/proto.c')
-rw-r--r-- | nest/proto.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/nest/proto.c b/nest/proto.c index 7baab269..319b35dd 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -1200,7 +1200,6 @@ proto_init(struct proto_config *c, node *n) p->proto_state = PS_DOWN; p->last_state_change = current_time(); p->vrf = c->vrf; - p->vrf_set = c->vrf_set; insert_node(&p->n, n); p->event = ev_new_init(proto_pool, proto_event, p); @@ -1377,8 +1376,7 @@ proto_reconfigure(struct proto *p, struct proto_config *oc, struct proto_config if ((nc->protocol != oc->protocol) || (nc->net_type != oc->net_type) || (nc->disabled != p->disabled) || - (nc->vrf != oc->vrf) || - (nc->vrf_set != oc->vrf_set)) + (nc->vrf != oc->vrf)) return 0; p->name = nc->name; @@ -2297,8 +2295,8 @@ proto_cmd_show(struct proto *p, uintptr_t verbose, int cnt) cli_msg(-1006, " Message: %s", p->message); if (p->cf->router_id) cli_msg(-1006, " Router ID: %R", p->cf->router_id); - if (p->vrf_set) - cli_msg(-1006, " VRF: %s", p->vrf ? p->vrf->name : "default"); + if (p->vrf) + cli_msg(-1006, " VRF: %s", p->vrf->name); if (p->proto->show_proto_info) p->proto->show_proto_info(p); |