Skip to content

Commit bdb3862

Browse files
committed
multinode: Limit generated VXLAN VNI to 100000
1 parent 6d353cf commit bdb3862

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/multinode.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,9 @@ jobs:
150150
- name: Generate a VXLAN VNI
151151
id: vxlan_vni
152152
run: |
153-
# VXLAN VNI is 24 bits
154-
max_vni=$(((2 << (24 - 1)) - 1))
153+
# There is an undocumented restriction limiting us to a max VNI of
154+
# 100,000.
155+
max_vni=100000
155156
timestamp=$(date +%s)
156157
vni=$(((timestamp % max_vni) + 1))
157158
echo vxlan_vni=$vni >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)