Commit 15cdd0cd authored by nanahira's avatar nanahira

rename

parent c2ad6834
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment