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
15cdd0cd
Commit
15cdd0cd
authored
Feb 03, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename
parent
c2ad6834
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
files/utility.sh.j2
files/utility.sh.j2
+5
-5
No files found.
files/utility.sh.j2
View file @
15cdd0cd
...
...
@@ -12,7 +12,7 @@ restore_mark() {
}
ppp_origin() {
initialize
_nextgen_router_
initialize
OPTION=$1
INTERFACE=$2
MARK=$[1000 + $(echo "$INTERFACE" | sed "s/ppp//g")]
...
...
@@ -21,7 +21,7 @@ ppp_origin() {
# ip6tables -t mangle "$OPTION" PREROUTING ! -p ospf -i "$INTERFACE" -j CONNMARK --set-xmark "$MARK"
}
initialize_process() {
_nextgen_router_
initialize_process() {
{% for subnet in localnets %}
ip rule add pref 80 to {{subnet}} lookup main
{% endfor %}
...
...
@@ -29,14 +29,14 @@ initialize_process() {
arp -f
}
initialize() {
_nextgen_router_
initialize() {
ipset restore -f {{ansible_user_dir}}/nextgen-router/localnet-ipset && \
initialize_process
_nextgen_router_initialize
true
}
eth_origin() {
initialize
_nextgen_router_
initialize
OPTION=$1
BRIDGE_NAME=$2
GATEWAY_ID=$3
...
...
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