summaryrefslogtreecommitdiffstats
path: root/isisd/isis_mt.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-04-23 16:49:01 +0200
committerRenato Westphal <renato@opensourcerouting.org>2020-04-23 18:05:51 +0200
commit05e4ec3798a759e733f5c4ec7744daec771a22e1 (patch)
treea1cec9025af514d3dfb6f9a22ee60029e911157a /isisd/isis_mt.c
parentMerge pull request #6278 from opensourcerouting/cpp-extern-blocks (diff)
downloadfrr-05e4ec3798a759e733f5c4ec7744daec771a22e1.tar.xz
frr-05e4ec3798a759e733f5c4ec7744daec771a22e1.zip
isisd: fix display of "isis bfd" in the running configuration
Since this command is modeled using YANG, it's already displayed as part of the call to nb_cli_show_dnode_cmds(). Calling the 'isis_circuit_config_write' hook was only making that command to be displayed twice. The aforementioned hook is still necessary for fabricd, which wasn't converted to the new northbound model yet. Fixes #6281. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_mt.c')
-rw-r--r--isisd/isis_mt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/isisd/isis_mt.c b/isisd/isis_mt.c
index e8e35ae63..5c262049a 100644
--- a/isisd/isis_mt.c
+++ b/isisd/isis_mt.c
@@ -302,6 +302,7 @@ circuit_get_mt_setting(struct isis_circuit *circuit, uint16_t mtid)
return setting;
}
+#ifdef FABRICD
static int circuit_write_mt_settings(struct isis_circuit *circuit,
struct vty *vty)
{
@@ -318,6 +319,7 @@ static int circuit_write_mt_settings(struct isis_circuit *circuit,
}
return written;
}
+#endif
struct isis_circuit_mt_setting **
circuit_mt_settings(struct isis_circuit *circuit, unsigned int *mt_count)
@@ -552,6 +554,8 @@ void tlvs_add_mt_p2p(struct isis_tlvs *tlvs, struct isis_circuit *circuit,
void mt_init(void)
{
+#ifdef FABRICD
hook_register(isis_circuit_config_write,
circuit_write_mt_settings);
+#endif
}