diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-07 18:35:46 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-07 18:35:46 +0100 |
commit | 46434a3cad99260b5a659e5df874eab4615bcb36 (patch) | |
tree | e5f4842fbdcc2ee0c66d6fdb437cb401a7234fb1 /nest/proto.c | |
parent | 4ff15a75c56531fa2d3858d8250dcef1af4e75b6 (diff) | |
parent | 7b2c5f3d2826e3175bf31b1c36056c9efc587a2b (diff) |
Merge commit '7b2c5f3d2826e3175bf31b1c36056c9efc587a2b' into int-new
Diffstat (limited to 'nest/proto.c')
-rw-r--r-- | nest/proto.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nest/proto.c b/nest/proto.c index b28ac569..ecc3b0fe 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -13,6 +13,7 @@ #include "lib/resource.h" #include "lib/lists.h" #include "lib/event.h" +#include "lib/timer.h" #include "lib/string.h" #include "conf/conf.h" #include "nest/route.h" @@ -673,6 +674,7 @@ proto_init(struct proto_config *c, node *n) p->proto_state = PS_DOWN; p->last_state_change = current_time(); + p->vrf = c->vrf; insert_node(&p->n, n); p->event = ev_new(proto_pool); @@ -819,7 +821,8 @@ proto_reconfigure(struct proto *p, struct proto_config *oc, struct proto_config /* If there is a too big change in core attributes, ... */ if ((nc->protocol != oc->protocol) || (nc->net_type != oc->net_type) || - (nc->disabled != p->disabled)) + (nc->disabled != p->disabled) || + (nc->vrf != oc->vrf)) return 0; p->name = nc->name; @@ -1645,6 +1648,8 @@ proto_cmd_show(struct proto *p, uint verbose, int cnt) cli_msg(-1006, " Description: %s", p->cf->dsc); if (p->cf->router_id) cli_msg(-1006, " Router ID: %R", p->cf->router_id); + if (p->vrf) + cli_msg(-1006, " VRF: %s", p->vrf->name); if (p->proto->show_proto_info) p->proto->show_proto_info(p); |