]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: fix output of IPv6 ND RA options
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 27 Dec 2011 14:49:15 +0000 (18:49 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 26 Jan 2012 07:42:44 +0000 (11:42 +0400)
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

zebra/rtadv.c

index e0941357d71674b0795dadacbe7853164a43c448..bc1abcaf38736fb69c20e1046b786e91b9e27ed0 100644 (file)
@@ -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);