summaryrefslogtreecommitdiff
path: root/eigrpd/eigrp_vty.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <Jafaral@users.noreply.github.com>2017-07-14 12:55:28 -0500
committerGitHub <noreply@github.com>2017-07-14 12:55:28 -0500
commit13c2f50cd5b6c584d91b9d10693c620ae090907b (patch)
tree22f863f83f7c71f477d780ca038ec3776cf065be /eigrpd/eigrp_vty.c
parente553b498f1e691800fd1bd94621350df941f9b44 (diff)
parent07ccdc88adc3abc0217ca7c9c2c6de3d3a8e9334 (diff)
Merge pull request #818 from donaldsharp/eigrp_afi
Eigrp afi
Diffstat (limited to 'eigrpd/eigrp_vty.c')
-rw-r--r--eigrpd/eigrp_vty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/eigrpd/eigrp_vty.c b/eigrpd/eigrp_vty.c
index 49fb729ca5..293b7e0ef1 100644
--- a/eigrpd/eigrp_vty.c
+++ b/eigrpd/eigrp_vty.c
@@ -59,6 +59,7 @@ static int
config_write_network (struct vty *vty, struct eigrp *eigrp)
{
struct route_node *rn;
+ int i;
/* `network area' print. */
for (rn = route_top (eigrp->networks); rn; rn = route_next (rn))
@@ -75,6 +76,11 @@ config_write_network (struct vty *vty, struct eigrp *eigrp)
if (eigrp->variance != EIGRP_VARIANCE_DEFAULT)
vty_out (vty, " variance %d\n", eigrp->variance);
+ for (i = 0; i < ZEBRA_ROUTE_MAX; i++)
+ if (i != zclient->redist_default &&
+ vrf_bitmap_check (zclient->redist[AFI_IP][i], VRF_DEFAULT))
+ vty_outln (vty, " redistribute %s", zebra_route_string(i));
+
/*Separate EIGRP configuration from the rest of the config*/
vty_out (vty, "!\n");