Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nextgen-router
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
nextgen-router
Commits
bf21282f
Commit
bf21282f
authored
May 09, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix check interface up
parent
6101e2e2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
files/utility.sh.j2
files/utility.sh.j2
+1
-1
network.yaml
network.yaml
+5
-0
No files found.
files/utility.sh.j2
View file @
bf21282f
...
@@ -49,7 +49,7 @@ _wait_for_interface_online() {
...
@@ -49,7 +49,7 @@ _wait_for_interface_online() {
echo "Waiting for interface $INTERFACE."
echo "Waiting for interface $INTERFACE."
CURRENT_STATUS=1
CURRENT_STATUS=1
while [[ "$CURRENT_STATUS" != 0 ]]; do
while [[ "$CURRENT_STATUS" != 0 ]]; do
ifconfig "$INTERFACE" | grep
'RUNNING
'
ifconfig "$INTERFACE" | grep
-P 'RUNNING|inet6
'
CURRENT_STATUS=$?
CURRENT_STATUS=$?
if [[ "$CURRENT_STATUS" != 0 ]]; then
if [[ "$CURRENT_STATUS" != 0 ]]; then
echo "Interface $INTERFACE is bad. Will try again after 3s."
echo "Interface $INTERFACE is bad. Will try again after 3s."
...
...
network.yaml
View file @
bf21282f
...
@@ -139,6 +139,11 @@
...
@@ -139,6 +139,11 @@
{% endfor %}
{% endfor %}
dest
:
/etc/dhcp/dhclient.conf
dest
:
/etc/dhcp/dhclient.conf
-
name
:
dhclient hook directory
become
:
true
file
:
path
:
/etc/dhcp/dhclient-enter-hooks.d
state
:
directory
-
name
:
remove dhclient resolved hook
-
name
:
remove dhclient resolved hook
become
:
true
become
:
true
file
:
file
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment