routing_db_set ${zone} ipv4 active 1
routing_update ${zone} ipv4
+ routing_default_update
# Emit interface-up event
event_interface_up ${zone}
# and update the routing table.
routing_db_remove ${zone} ipv4
routing_update ${zone} ipv4
+ routing_default_update
# Save accounting information
ppp_accounting ${zone}
routing_db_set ${zone} ipv6 active 1
routing_update ${zone} ipv6
+ routing_default_update
# Emit interface-up event
event_interface_up ${zone}
# and update the routing table.
routing_db_remove ${zone} ipv6
routing_update ${zone} ipv6
+ routing_default_update
# Save accounting information
ppp_accounting ${zone}
log DEBUG "Flushing routing table ${table}"
cmd ${ip_cmd} route flush table ${table}
+ # Exit here if there is no routing information.
+ if ! routing_db_exists ${zone} ${proto}; then
+ return ${EXIT_OK}
+ fi
+
local local_ip_address=$(routing_db_get ${zone} ${proto} local-ip-address)
local remote_ip_address=$(routing_db_get ${zone} ${proto} remote-ip-address)