bgpd: implement admin distance
Until today the admin distance cannot be configured for any IPv6
routing protocol. This patch implements it for bgp.
Signed-off-by: Maitane Zotes <maz@open.ch>
patchwork #993: http://patchwork.quagga.net/patch/993/
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 249d20f..3517011 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -5367,6 +5367,8 @@
bgp_config_write_maxpaths (vty, bgp, afi, safi, &write);
+ bgp_config_write_distance (vty, bgp, afi, safi, &write);
+
if (write)
vty_out (vty, " exit-address-family%s", VTY_NEWLINE);
@@ -5547,7 +5549,7 @@
bgp_config_write_maxpaths (vty, bgp, AFI_IP, SAFI_UNICAST, &write);
/* Distance configuration. */
- bgp_config_write_distance (vty, bgp);
+ bgp_config_write_distance (vty, bgp, AFI_IP, SAFI_UNICAST, &write);
/* No auto-summary */
if (bgp_option_check (BGP_OPT_CONFIG_CISCO))