Commit 15cdd0cd authored by nanahira's avatar nanahira

rename

parent c2ad6834
...@@ -12,7 +12,7 @@ restore_mark() { ...@@ -12,7 +12,7 @@ restore_mark() {
} }
ppp_origin() { ppp_origin() {
initialize _nextgen_router_initialize
OPTION=$1 OPTION=$1
INTERFACE=$2 INTERFACE=$2
MARK=$[1000 + $(echo "$INTERFACE" | sed "s/ppp//g")] MARK=$[1000 + $(echo "$INTERFACE" | sed "s/ppp//g")]
...@@ -21,7 +21,7 @@ ppp_origin() { ...@@ -21,7 +21,7 @@ ppp_origin() {
# ip6tables -t mangle "$OPTION" PREROUTING ! -p ospf -i "$INTERFACE" -j CONNMARK --set-xmark "$MARK" # ip6tables -t mangle "$OPTION" PREROUTING ! -p ospf -i "$INTERFACE" -j CONNMARK --set-xmark "$MARK"
} }
initialize_process() { _nextgen_router_initialize_process() {
{% for subnet in localnets %} {% for subnet in localnets %}
ip rule add pref 80 to {{subnet}} lookup main ip rule add pref 80 to {{subnet}} lookup main
{% endfor %} {% endfor %}
...@@ -29,14 +29,14 @@ initialize_process() { ...@@ -29,14 +29,14 @@ initialize_process() {
arp -f arp -f
} }
initialize() { _nextgen_router_initialize() {
ipset restore -f {{ansible_user_dir}}/nextgen-router/localnet-ipset && \ ipset restore -f {{ansible_user_dir}}/nextgen-router/localnet-ipset && \
initialize_process _nextgen_router_initialize
true true
} }
eth_origin() { eth_origin() {
initialize _nextgen_router_initialize
OPTION=$1 OPTION=$1
BRIDGE_NAME=$2 BRIDGE_NAME=$2
GATEWAY_ID=$3 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