Skip to content

Commit

Permalink
Print Path added to gobgp
Browse files Browse the repository at this point in the history
Signed-off-by: cgparini <claudio.gasparini@pantheon.tech>
  • Loading branch information
cgparini committed Oct 12, 2017
1 parent cb9a1a0 commit 88ea390
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/gobgp_route_reflector/usage_scripts/addPath.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/usr/bin/env bash

PREFIX="101.0.0.0/24"
NEXTHOP="101.0.10.1"
## Advertize path
docker exec -i gobgp-for-rr bash <<< "gobgp global rib add -a ipv4 101.0.0.0/24 nexthop 101.0.10.1"
echo "##### prefix "$PREFIX
echo "##### nexthop "$NEXTHOP

(
echo "gobgp global rib add -a ipv4 "$PREFIX" nexthop "$NEXTHOP
) | docker exec -i gobgp-for-rr bash

0 comments on commit 88ea390

Please sign in to comment.