aboutsummaryrefslogtreecommitdiffstats
path: root/main/opennhrp/opennhrp-0.9.3-peer-up-bgp.patch
blob: 60e4827d6fe2ef3bb5a2b04d2bd34549b27a74f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
diff -ru opennhrp-0.9.3.orig/etc/opennhrp-script opennhrp-0.9.3/etc/opennhrp-script
--- opennhrp-0.9.3.orig/etc/opennhrp-script	2009-02-26 10:35:38 +0000
+++ opennhrp-0.9.3/etc/opennhrp-script	2009-02-26 10:52:26 +0000
@@ -15,6 +15,7 @@
 	echo "Create link from $NHRP_SRCADDR ($NHRP_SRCNBMA) to $NHRP_DESTADDR ($NHRP_DESTNBMA)"
 	racoonctl establish-sa -w isakmp inet $NHRP_SRCNBMA $NHRP_DESTNBMA || exit 1
 	racoonctl establish-sa -w esp inet $NHRP_SRCNBMA $NHRP_DESTNBMA gre || exit 1 
+	vtysh -d bgpd -c "clear bgp $NHRP_DESTADDR" 2>/dev/null || true
 	;;
 peer-down)
 	echo "Delete link from $NHRP_SRCADDR ($NHRP_SRCNBMA) to $NHRP_DESTADDR ($NHRP_DESTNBMA)"