summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-08-15 11:37:15 -0400
committerGitHub <noreply@github.com>2017-08-15 11:37:15 -0400
commit0dac59e9433ab025671c9a867a22894084d25c76 (patch)
tree2d43efbc56565288bc577952380ba2c1c50a6c47
parent001169e172cbd567922570943b8590150442cb51 (diff)
parenta23587faac3c1f463c45e02ef7f6607eb3da6297 (diff)
Merge pull request #983 from opensourcerouting/vtysh-watchfrr-no-conf
vtysh: don't collect config from watchfrr
-rw-r--r--vtysh/vtysh.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 6255726c47..f971c171bc 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -250,6 +250,13 @@ static int vtysh_client_execute(struct vtysh_client *head_client,
static void vtysh_client_config(struct vtysh_client *head_client, char *line)
{
+ /* watchfrr currently doesn't load any config, and has some hardcoded
+ * settings that show up in "show run". skip it here (for now at
+ * least) so we don't get that mangled up in config-write.
+ */
+ if (head_client->flag == VTYSH_WATCHFRR)
+ return;
+
vtysh_client_run_all(head_client, line, 1, NULL,
vtysh_config_parse_line, NULL);
}