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
44b076dd
Commit
44b076dd
authored
Sep 27, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add stop br script
parent
7b04eb3d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
files/stop-br.sh.j2
files/stop-br.sh.j2
+15
-0
network.yaml
network.yaml
+5
-0
No files found.
files/stop-br.sh.j2
0 → 100755
View file @
44b076dd
#!/bin/bash
INTERFACE
=
$1
scriptRoot
={{
ansible_user_dir
}}
/nextgen-router/scripts/
$INTERFACE
set
-x
$scriptRoot
/pre-down.sh
if
[[
-f
"/run/dhclient.
$INTERFACE
.pid"
]]
;
then
kill
$(
cat
/run/dhclient.
$INTERFACE
.pid
)
fi
ip
link
del dev
$INTERFACE
$scriptRoot
/post-down.sh
rm
/run/network/ifstate.
$INTERFACE
true
network.yaml
View file @
44b076dd
...
@@ -115,6 +115,11 @@
...
@@ -115,6 +115,11 @@
vars
:
vars
:
br
:
'
{{item}}'
br
:
'
{{item}}'
with_items
:
'
{{bridges}}'
with_items
:
'
{{bridges}}'
-
name
:
stop br script
template
:
src
:
./files/stop-br.sh.j2
dest
:
'
{{ansible_user_dir}}/nextgen-router/stop-br.sh'
mode
:
0755
-
name
:
dhclient.conf
-
name
:
dhclient.conf
become
:
true
become
:
true
copy
:
copy
:
...
...
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