Skip to content

Commit

Permalink
[ci skip] 2024.10.16-32140
Browse files Browse the repository at this point in the history
  • Loading branch information
cybozu-neco committed Oct 16, 2024
2 parents 7bbbdc5 + ba5b64b commit 51022d6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ignitions/common/files/opt/sbin/neco-wait-dhcp-online
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

wait_for_address() {
for i in $(seq 500); do
ip -o -4 address | grep -w "eth0\|eth1\|eno1\|eno2\|eno12399\|eno12409" >/dev/null
ip -o -4 address | grep -w "eth0\|eth1\|eno1\|eno2\|eno12399\|eno12399np0\|eno12409\|eno12409np1" >/dev/null
[ "$?" -eq 0 ] && return
sleep 1
done
Expand Down
8 changes: 4 additions & 4 deletions ignitions/common/files/opt/sbin/setup-local-network
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fi

cat >/etc/systemd/network/01-eth0.network <<EOF
[Match]
Name=eth0 eno1 eno12399
Name=eth0 eno1 eno12399 eno12399np0
[Network]
LLDP=true
Expand All @@ -40,7 +40,7 @@ EOF

cat >/etc/systemd/network/01-eth1.network <<EOF
[Match]
Name=eth1 eno2 eno12409
Name=eth1 eno2 eno12409 eno12409np1
[Network]
LLDP=true
Expand Down Expand Up @@ -89,6 +89,6 @@ wait_network() {
done
}

wait_network eth0 "{{ index .Spec.IPv4 1 }}/{{ (index .Info.Network.IPv4 1).MaskBits }}" eth0 eno1 eno12399
wait_network eth1 "{{ index .Spec.IPv4 2 }}/{{ (index .Info.Network.IPv4 2).MaskBits }}" eth1 eno2 eno12409
wait_network eth0 "{{ index .Spec.IPv4 1 }}/{{ (index .Info.Network.IPv4 1).MaskBits }}" eth0 eno1 eno12399 eno12399np0
wait_network eth1 "{{ index .Spec.IPv4 2 }}/{{ (index .Info.Network.IPv4 2).MaskBits }}" eth1 eno2 eno12409 eno12409np1
wait_network node0 "{{ index .Spec.IPv4 0 }}/32" node0
2 changes: 1 addition & 1 deletion ignitions/common/networkd/01-eth0.network
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Match]
Name=eth0 eno1 eno12399
Name=eth0 eno1 eno12399 eno12399np0

[Network]
DHCP=yes
Expand Down
2 changes: 1 addition & 1 deletion ignitions/common/networkd/01-eth1.network
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Match]
Name=eth1 eno2 eno12409
Name=eth1 eno2 eno12409 eno12409np1

[Network]
DHCP=yes
Expand Down

0 comments on commit 51022d6

Please sign in to comment.