We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a97b53 commit 8622953Copy full SHA for 8622953
images/egress/router/egress-router.sh
@@ -31,12 +31,12 @@ function setup_network() {
31
# The pod may die and get restarted; only try to add the
32
# address/route/rules if they are not already there.
33
if ! ip route get "${EGRESS_GATEWAY}" | grep -q macvlan0; then
34
- ip addr add "${EGRESS_SOURCE}"/32 dev macvlan0
35
- ip link set up dev macvlan0
+ ip addr add "${EGRESS_SOURCE}"/32 dev macvlan0
+ ip link set up dev macvlan0
36
37
- ip route add "${EGRESS_GATEWAY}"/32 dev macvlan0
38
- ip route del default
39
- 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
40
fi
41
42
# Update neighbor ARP caches in case another node previously had the IP. (This is
0 commit comments