From f82641cc44cd9a9e57f344589499846985ba30aa Mon Sep 17 00:00:00 2001
From: Robert Bays <rbays@roatan.(none)>
Date: Wed, 2 Jun 2010 17:15:27 -0700
Subject: fix for bug 5653

---
 scripts/bgp/vyatta-bgp.pl | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

(limited to 'scripts')

diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl
index b72deab9..efd45bc9 100755
--- a/scripts/bgp/vyatta-bgp.pl
+++ b/scripts/bgp/vyatta-bgp.pl
@@ -163,6 +163,10 @@ my %qcom = (
        set => "router bgp #3 ; address-family ipv6 ; neighbor #5 allowas-in", 
        del => "router bgp #3 ; address-family ipv6 ; no neighbor #5 allowas-in", 
   },
+  "protocols bgp var neighbor var address-family ipv6-unicast allowas-in number" => {
+       set => "router bgp #3 ; address-family ipv6 ; neighbor #5 allowas-in #10",
+       del => "router bgp #3 ; address-family ipv6 ; no neighbor #5 allowas-in ; neighbor #5 allowas-in",
+  },
   "protocols bgp var neighbor var address-family ipv6-unicast attribute-unchanged" => {
        set => "router bgp #3 ; address-family ipv6 ; no neighbor #5 attribute-unchanged ; neighbor #5 attribute-unchanged ?as-path ?med ?next-hop", 
        del => "router bgp #3 ; address-family ipv6 ; no neighbor #5 attribute-unchanged", 
@@ -305,7 +309,7 @@ my %qcom = (
   },
   "protocols bgp var neighbor var allowas-in number" => {
        set => "router bgp #3 ; neighbor #5 allowas-in #8", 
-       del => "router bgp #3 ; no neighbor #5 allowas-in #8 ; neighbor #5 allowas-in", 
+       del => "router bgp #3 ; no neighbor #5 allowas-in ; neighbor #5 allowas-in", 
   },
   "protocols bgp var neighbor var attribute-unchanged" => {
        set => "router bgp #3 ; no neighbor #5 attribute-unchanged ; neighbor #5 attribute-unchanged ?as-path ?med ?next-hop", 
@@ -659,6 +663,10 @@ my %qcom = (
        set => "router bgp #3 ; address-family ipv6 ; neighbor #5 allowas-in", 
        del => "router bgp #3 ; address-family ipv6 ; no neighbor #5 allowas-in", 
   },
+  "protocols bgp var peer-group var address-family ipv6-unicast allowas-in number" => {
+       set => "router bgp #3 ; address-family ipv6 ; neighbor #5 allowas-in #10",
+       del => "router bgp #3 ; address-family ipv6 ; no neighbor #5 allowas-in ; neighbor #5 allowas-in",
+  },
   "protocols bgp var peer-group var address-family ipv6-unicast attribute-unchanged" => {
        set => "router bgp #3 ; address-family ipv6 ; no neighbor #5 attribute-unchanged ; neighbor #5 attribute-unchanged ?as-path ?med ?next-hop", 
        del => "router bgp #3 ; address-family ipv6 ; no neighbor #5 attribute-unchanged", 
@@ -797,7 +805,7 @@ my %qcom = (
   },
   "protocols bgp var peer-group var allowas-in number" => {
        set => "router bgp #3 ; neighbor #5 allowas-in #8", 
-       del => "router bgp #3 ; no neighbor #5 allowas-in #8 ; neighbor #5 allowas-in", 
+       del => "router bgp #3 ; no neighbor #5 allowas-in ; neighbor #5 allowas-in", 
   },
   "protocols bgp var peer-group var attribute-unchanged" => {
        set => "router bgp #3 ; no neighbor #5 attribute-unchanged ; neighbor #5 attribute-unchanged ?as-path ?med ?next-hop", 
-- 
cgit v1.2.3