Skip to content

Commit

Permalink
gh-495 Changes to accomodate flannel.x interface behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed Jan 16, 2024
1 parent 989e5e7 commit 9c652eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cicd/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,10 @@ create_docker_host_vxlan() {
#echo "$h1:$link1->$h2:$link2"

if [[ "$uifType" == "phy" ]]; then
sudo ip -n $h1 link add vxlan$vxid type vxlan id $vxid local $lip dev $link1 dstport 4789
sudo ip -n $h1 link add vxlan$vxid type vxlan id $vxid local $lip dev $link1 dstport 0
sudo ip -n $h1 link set vxlan$vxid up
elif [[ "$uifType" == "vlan" ]]; then
sudo ip -n $h1 link add vxlan$vxid type vxlan id $vxid local $lip dev vlan$vid dstport 4789
sudo ip -n $h1 link add vxlan$vxid type vxlan id $vxid local $lip dev vlan$vid dstport 0
sudo ip -n $h1 link set vxlan$vxid up
fi

Expand Down

0 comments on commit 9c652eb

Please sign in to comment.