summaryrefslogtreecommitdiff
path: root/zebra/rtadv.c
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2011-12-27 18:49:15 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2012-01-26 11:42:44 +0400
commit6134b875f39986564aced5e2d7329fcd852f17f4 (patch)
tree19eb8d2df066047bc25162587f2ce9e1950c20ed /zebra/rtadv.c
parentb4e45f67057be22133b6bec88cdf285d5c8214db (diff)
zebra: fix output of IPv6 ND RA options
The following options could be configured for an interface, but were never visible in the config text: ipv6 nd adv-interval-option ipv6 nd home-agent-preference ipv6 nd home-agent-lifetime ipv6 nd home-agent-config-flag
Diffstat (limited to 'zebra/rtadv.c')
-rw-r--r--zebra/rtadv.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/zebra/rtadv.c b/zebra/rtadv.c
index e0941357..bc1abcaf 100644
--- a/zebra/rtadv.c
+++ b/zebra/rtadv.c
@@ -1511,10 +1511,24 @@ rtadv_config_write (struct vty *vty, struct interface *ifp)
vty_out (vty, " ipv6 nd ra-interval %d%s", interval / 1000,
VTY_NEWLINE);
+ if (zif->rtadv.AdvIntervalOption)
+ vty_out (vty, " ipv6 nd adv-interval-option%s", VTY_NEWLINE);
+
if (zif->rtadv.AdvDefaultLifetime != RTADV_ADV_DEFAULT_LIFETIME)
vty_out (vty, " ipv6 nd ra-lifetime %d%s", zif->rtadv.AdvDefaultLifetime,
VTY_NEWLINE);
+ if (zif->rtadv.HomeAgentPreference)
+ vty_out (vty, " ipv6 nd home-agent-preference %u%s",
+ zif->rtadv.HomeAgentPreference, VTY_NEWLINE);
+
+ if (zif->rtadv.HomeAgentLifetime)
+ vty_out (vty, " ipv6 nd home-agent-lifetime %u%s",
+ zif->rtadv.HomeAgentLifetime, VTY_NEWLINE);
+
+ if (zif->rtadv.AdvHomeAgentFlag)
+ vty_out (vty, " ipv6 nd home-agent-config-flag%s", VTY_NEWLINE);
+
if (zif->rtadv.AdvReachableTime)
vty_out (vty, " ipv6 nd reachable-time %d%s", zif->rtadv.AdvReachableTime,
VTY_NEWLINE);