diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-09-18 17:29:00 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-09-18 17:50:45 +0200 |
commit | c0fc3e67185c1e0ff2d083572c6ad3983ba4ef25 (patch) | |
tree | 9fe17603f4fec18b7f9fbd8d8efc1f13a9bef8ee /conf | |
parent | afa14f1868f2c753efdc81ce8e2c2d44e6bdd80e (diff) |
The MRT protocol
The new MRT protocol is responsible for periodic RIB table dumps in the
MRT format (RFC 6396). Also the existing code for BGP4MP MRT dumps is
refactored and splitted between BGP to MRT protocols, will be more
integrated into MRT in the future.
Example:
protocol mrt {
table "*";
filename "%N_%F_%T.mrt";
period 60;
}
It is partially based on the old MRT code from Pavel Tvrdik.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/conf.c | 2 | ||||
-rw-r--r-- | conf/confbase.Y | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/conf/conf.c b/conf/conf.c index f64932f5..4e6354b2 100644 --- a/conf/conf.c +++ b/conf/conf.c @@ -206,7 +206,7 @@ config_del_obstacle(struct config *c) { DBG("+++ deleting obstacle %d\n", c->obstacle_count); c->obstacle_count--; - if (!c->obstacle_count) + if (!c->obstacle_count && (c != config)) ev_schedule(config_event); } diff --git a/conf/confbase.Y b/conf/confbase.Y index b8deed54..3f3aef5d 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -55,6 +55,7 @@ CF_DECLS struct roa_show_data *ro; struct sym_show_data *sd; struct lsadb_show_data *ld; + struct mrt_dump_data *md; struct iface *iface; struct roa_table *rot; void *g; |