Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
danwinship committed Jan 5, 2018
1 parent 8a97b53 commit 8622953
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions images/egress/router/egress-router.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ function setup_network() {
# The pod may die and get restarted; only try to add the
# address/route/rules if they are not already there.
if ! ip route get "${EGRESS_GATEWAY}" | grep -q macvlan0; then
ip addr add "${EGRESS_SOURCE}"/32 dev macvlan0
ip link set up dev macvlan0
ip addr add "${EGRESS_SOURCE}"/32 dev macvlan0
ip link set up dev macvlan0

ip route add "${EGRESS_GATEWAY}"/32 dev macvlan0
ip route del default
ip route add default via "${EGRESS_GATEWAY}" dev macvlan0
ip route add "${EGRESS_GATEWAY}"/32 dev macvlan0
ip route del default
ip route add default via "${EGRESS_GATEWAY}" dev macvlan0
fi

# Update neighbor ARP caches in case another node previously had the IP. (This is
Expand Down

0 comments on commit 8622953

Please sign in to comment.