Skip to content

Commit

Permalink
fix convergence test
Browse files Browse the repository at this point in the history
  • Loading branch information
GIC-de committed Nov 14, 2024
1 parent f50d4bc commit 3517c33
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions 03_routing/06_bgp_convergence/convergence.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ def main():
parser = argparse.ArgumentParser(description=DESCRIPTION)
parser.add_argument('--host', type=str, default="127.0.0.1", help="BNG Blaster Controller")
parser.add_argument('--port', type=int, default=8001, help="BNG Blaster Controller Port")
parser.add_argument('--instance', type=str, default="convergence", help="BNG Blaster Controller Instance")
parser.add_argument('--instance', type=str, default="E03_06_BGP_CONVERGENCE", help="BNG Blaster Controller Instance")
parser.add_argument('--rx1ip', type=str, default="172.16.2.2", help="RX1 local IP")
parser.add_argument('--rx2ip', type=str, default="172.16.3.2", help="RX2 local IP")
parser.add_argument('--timeout', type=int, default=120, help='Max convergence time expected')
parser.add_argument('--timeout', type=int, default=300, help='Max convergence time expected')
parser.add_argument('--log-level', type=str, default='info', choices=LOG_LEVELS.keys(), help='logging Level')

args = parser.parse_args()
Expand Down
12 changes: 6 additions & 6 deletions 03_routing/06_bgp_convergence/generate_routes.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
# https://github.com/rtbrick/BGP-CP-DP-Testing/blob/main/generate_routes.sh

bgpupdate -a 65001 -f rx1-withdraw.bgp --local-pref 100 -n 172.16.2.2 -N 1 -p 11.0.0.0/24 -P 900000 --withdraw --end-of-rib &
bgpupdate -a 65001 -f rx2.bgp --local-pref 10 -n 172.16.3.2 -N 1 -p 11.0.0.0/24 -P 900000 --end-of-rib &
bgpupdate -a 65001 -f rx2-withdraw.bgp --local-pref 10 -n 172.16.3.2 -N 1 -p 11.0.0.0/24 -P 900000 --withdraw --end-of-rib &
bgpupdate -a 65001 -l 100 -f rx1.bgp --local-pref 100 -n 172.16.2.2 -N 1 -p 11.0.0.0/24 -P 900000 --end-of-rib \
-s streams.json \
--stream-direction downstream \
--stream-pps 1 \
--stream-interface veth4:10

bgpupdate -a 65001 -f rx1-withdraw.bgp --local-pref 100 -n 172.16.2.2 -N 1 -p 11.0.0.0/24 -P 900000 --withdraw --end-of-rib
bgpupdate -a 65001 -f rx2.bgp --local-pref 10 -n 172.16.3.2 -N 1 -p 11.0.0.0/24 -P 900000 --end-of-rib
bgpupdate -a 65001 -f rx2-withdraw.bgp --local-pref 10 -n 172.16.3.2 -N 1 -p 11.0.0.0/24 -P 900000 --withdraw --end-of-rib
--stream-pps 0.1 \
--stream-interface veth4:10
4 changes: 4 additions & 0 deletions 03_routing/06_bgp_convergence/stop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
curl -i --location --request POST 'http://127.0.1:8001/api/v1/instances/E03_06_BGP_CONVERGENCE/_stop' \
--header 'Content-Type: application/json' \
--data-raw '{}'
curl -i --location --request DELETE 'http://127.0.1:8001/api/v1/instances/E03_06_BGP_CONVERGENCE'

0 comments on commit 3517c33

Please sign in to comment.