- Start new external VPN management implementation.
This commit is contained in:
@@ -99,7 +99,7 @@ dump()
|
||||
|
||||
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
# Table-Set ()
|
||||
# Table_Set
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
table_set()
|
||||
@@ -111,6 +111,32 @@ table_set()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
# Address_Refresh
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
address_refresh()
|
||||
{
|
||||
dst_id="$1"
|
||||
|
||||
|
||||
if [[ "${dst_id}" != "" ]]
|
||||
then
|
||||
echo "Refreshing address: [${dst_id}]..."
|
||||
|
||||
network_dst_tab_get ${dst_id}
|
||||
network_dst_address_refresh ${dst_id} ${dst_host_name} ${dst_ip}
|
||||
else
|
||||
echo "Refreshing all address..."
|
||||
|
||||
network_dst_address_refresh_all
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
# Main
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -143,6 +169,10 @@ case "$1" in
|
||||
table_set)
|
||||
table_set $2 $3
|
||||
;;
|
||||
|
||||
refresh_address)
|
||||
address_refresh $2
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|status|dump|table_set}"
|
||||
|
||||
Reference in New Issue
Block a user