diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2015-01-27 20:24:15 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2015-01-30 01:12:54 +0100 |
commit | e832c34fd19aa6b2df7c28e78f07617095cf136e (patch) | |
tree | 493f820738828b863d4c90bad01c4c1026d45133 | |
parent | ca2b105f3bdd8859117756dc8d8c2406e28af28b (diff) | |
download | quagga-e832c34fd19aa6b2df7c28e78f07617095cf136e.tar.bz2 quagga-e832c34fd19aa6b2df7c28e78f07617095cf136e.tar.xz |
zebra: mark multicast commands experimental
depending on feedback from actually having these commands in a released
version, we may want to adjust them. Thus, mark them as experimental so
users are aware of this.
Cc: Everton Marques <everton.marques@gmail.com>
Cc: Balaji G <balajig81@gmail.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r-- | lib/vty.h | 8 | ||||
-rw-r--r-- | zebra/zebra_vty.c | 7 |
2 files changed, 15 insertions, 0 deletions
@@ -217,6 +217,14 @@ do { } \ } while (0) +#define VTY_WARN_EXPERIMENTAL() \ +do { \ + vty_out (vty, "%% WARNING: this command is experimental. Both its name and" \ + " parameters may%s%% change in a future version of Quagga," \ + " possibly breaking your configuration!%s", \ + VTY_NEWLINE, VTY_NEWLINE); \ +} while (0) + /* Exported variables */ extern char integrate_default[]; diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 29c01c3c..598b40de 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -154,6 +154,7 @@ DEFUN (ip_mroute_dist, "Nexthop interface name\n" "Distance\n") { + VTY_WARN_EXPERIMENTAL(); return zebra_static_ipv4_safi(vty, SAFI_MULTICAST, 1, argv[0], NULL, argv[1], NULL, argc > 2 ? argv[2] : NULL); } @@ -177,6 +178,7 @@ DEFUN (no_ip_mroute_dist, "Nexthop interface name\n" "Distance\n") { + VTY_WARN_EXPERIMENTAL(); return zebra_static_ipv4_safi(vty, SAFI_MULTICAST, 0, argv[0], NULL, argv[1], NULL, argc > 2 ? argv[2] : NULL); } @@ -203,6 +205,8 @@ DEFUN (ip_multicast_mode, "Lookup both, use entry with lower distance\n" "Lookup both, use entry with longer prefix\n") { + VTY_WARN_EXPERIMENTAL(); + if (!strncmp (argv[0], "u", 1)) multicast_mode_ipv4_set (MCAST_URIB_ONLY); else if (!strncmp (argv[0], "mrib-o", 6)) @@ -254,6 +258,7 @@ DEFUN (show_ip_rpf, IP_STR "Display RPF information for multicast source\n") { + VTY_WARN_EXPERIMENTAL(); return do_show_ip_route(vty, SAFI_MULTICAST); } @@ -270,6 +275,8 @@ DEFUN (show_ip_rpf_addr, struct rib *rib; int ret; + VTY_WARN_EXPERIMENTAL(); + ret = inet_aton (argv[0], &addr); if (ret == 0) { |