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
0913e5e8
Commit
0913e5e8
authored
Mar 27, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better change mac address
parent
b1be5af4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
26 deletions
+3
-26
files/bridge-post-scripts/down.sh.j2
files/bridge-post-scripts/down.sh.j2
+0
-7
files/bridge-post-scripts/post-up.sh.j2
files/bridge-post-scripts/post-up.sh.j2
+0
-6
files/bridge-post-scripts/pre-up.sh.j2
files/bridge-post-scripts/pre-up.sh.j2
+0
-7
files/bridge-post-scripts/up.sh.j2
files/bridge-post-scripts/up.sh.j2
+0
-6
files/interfaces.j2
files/interfaces.j2
+3
-0
No files found.
files/bridge-post-scripts/down.sh.j2
View file @
0913e5e8
...
@@ -3,11 +3,4 @@
...
@@ -3,11 +3,4 @@
source
{{
ansible_user_dir
}}
/nextgen-router/scripts/utility.sh
source
{{
ansible_user_dir
}}
/nextgen-router/scripts/utility.sh
export
BRIDGE_NAME
={{
br.name
}}
export
BRIDGE_NAME
={{
br.name
}}
{
%
if
br.mac is defined and br.mac %
}
# Change mac
export
BRIDGE_MAC
={{
br.mac
}}
export
BR
ip
link set
"
$BRIDGE_NAME
"
address
"
$BRIDGE_MAC
"
{
% endif %
}
true
true
files/bridge-post-scripts/post-up.sh.j2
View file @
0913e5e8
...
@@ -7,12 +7,6 @@ export BRIDGE_NAME={{br.name}}
...
@@ -7,12 +7,6 @@ export BRIDGE_NAME={{br.name}}
export
BRIDGE_ADDRESS
={{
br.address
}}
export
BRIDGE_ADDRESS
={{
br.address
}}
{
% endif %
}
{
% endif %
}
{
%
if
br.mac is defined and br.mac %
}
# Change mac
export
BRIDGE_MAC
={{
br.mac
}}
# ip link set "$BRIDGE_NAME" address "$BRIDGE_MAC"
{
% endif %
}
{
%
if
br.moreAddresses is defined and br.moreAddresses %
}
{
%
if
br.moreAddresses is defined and br.moreAddresses %
}
# Add more addresses
# Add more addresses
{
%
for
address
in
br.moreAddresses %
}
{
%
for
address
in
br.moreAddresses %
}
...
...
files/bridge-post-scripts/pre-up.sh.j2
View file @
0913e5e8
...
@@ -20,11 +20,4 @@ ip link set {{br.name}}{{link | regex_replace('\.', '')}} up
...
@@ -20,11 +20,4 @@ ip link set {{br.name}}{{link | regex_replace('\.', '')}} up
{
% endif %
}
{
% endif %
}
{
% endfor %
}
{
% endfor %
}
{
%
if
br.mac is defined and br.mac %
}
# Change mac
export
BRIDGE_MAC
={{
br.mac
}}
# ip link set "$BRIDGE_NAME" address "$BRIDGE_MAC"
{
% endif %
}
true
true
files/bridge-post-scripts/up.sh.j2
View file @
0913e5e8
...
@@ -3,10 +3,4 @@
...
@@ -3,10 +3,4 @@
source
{{
ansible_user_dir
}}
/nextgen-router/scripts/utility.sh
source
{{
ansible_user_dir
}}
/nextgen-router/scripts/utility.sh
export
BRIDGE_NAME
={{
br.name
}}
export
BRIDGE_NAME
={{
br.name
}}
{
%
if
br.mac is defined and br.mac %
}
# Change mac
export
BRIDGE_MAC
={{
br.mac
}}
ip
link set
"
$BRIDGE_NAME
"
address
"
$BRIDGE_MAC
"
{
% endif %
}
true
true
files/interfaces.j2
View file @
0913e5e8
...
@@ -104,6 +104,9 @@ metric {{ 1100 + br.gateways[0].id }}
...
@@ -104,6 +104,9 @@ metric {{ 1100 + br.gateways[0].id }}
metric 9999
metric 9999
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% if br.mac is defined and br.mac %}
hwaddress ether {{br.mac}}
{% endif %}
pre-up {{ansible_user_dir}}/nextgen-router/scripts/{{br.name}}/pre-up.sh
pre-up {{ansible_user_dir}}/nextgen-router/scripts/{{br.name}}/pre-up.sh
up {{ansible_user_dir}}/nextgen-router/scripts/{{br.name}}/up.sh
up {{ansible_user_dir}}/nextgen-router/scripts/{{br.name}}/up.sh
post-up {{ansible_user_dir}}/nextgen-router/scripts/{{br.name}}/post-up.sh
post-up {{ansible_user_dir}}/nextgen-router/scripts/{{br.name}}/post-up.sh
...
...
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