aboutsummaryrefslogtreecommitdiffstats
path: root/src/vty_interface.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-22 16:34:16 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-22 16:34:16 +0100
commita310e532438196778b554132d69e78da933aaa81 (patch)
tree8790698cc402eec776862f2c037c04d9e36cae1e /src/vty_interface.c
parentfbfe8eb81de7900a5241528ca4087be8211bd259 (diff)
vty: Classify the application that we run and provide different options
The VTY interface is used for three different application and not every option will make sense for every app. In the long run we will split the vty interface but for now we just qualify the application.
Diffstat (limited to 'src/vty_interface.c')
-rw-r--r--src/vty_interface.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/vty_interface.c b/src/vty_interface.c
index 3ad2fe0..f5eb0f1 100644
--- a/src/vty_interface.c
+++ b/src/vty_interface.c
@@ -1,7 +1,7 @@
/* VTY code for the Cellmgr */
/*
- * (C) 2010 by Holger Hans Peter Freyther <zecke@selfish.org>
- * (C) 2010 by On-Waves
+ * (C) 2010-2011 by Holger Hans Peter Freyther <zecke@selfish.org>
+ * (C) 2010-2011 by On-Waves
* All Rights Reserved
*
* This program is free software: you can redistribute it and/or modify
@@ -295,7 +295,7 @@ DEFUN(show_stats, show_stats_cmd,
{
if (bsc.link_set)
dump_stats(vty, bsc.link_set);
- if (bsc.m2ua_set)
+ if (bsc.m2ua_set && bsc.app == APP_STP)
dump_stats(vty, bsc.m2ua_set);
return CMD_SUCCESS;
}
@@ -328,7 +328,8 @@ DEFUN(show_linksets, show_linksets_cmd,
SHOW_STR "Display current state of linksets\n")
{
dump_state(vty, "MTP ", bsc.link_set);
- dump_state(vty, "M2UA", bsc.m2ua_set);
+ if (bsc.app == APP_STP)
+ dump_state(vty, "M2UA", bsc.m2ua_set);
return CMD_SUCCESS;
}