#!/usr/bin/env bash

## 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"
#!/usr/bin/env bash

PREFIX="101.0.0.0/24"
NEXTHOP="101.0.10.1"
## Advertize path
echo "##### prefix "$PREFIX
echo "##### nexthop "$NEXTHOP

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

Signed-off-by: cgparini <e1fe59cb44b06b1ab80aa5ef1b61a7e77b52c855@pantheon.tech>
