?? xrl_ripng_shell_funcs.sh
字號:
ripng_common_get_target_name(){ if [ $# -ne 0 ] ; then echo "Usage: ripng_common_get_target_name" exit 1 fi XRL="finder://ripng/common/0.1/get_target_name" call_xrl_wrapper -p all "${XRL}"}ripng_common_get_version(){ if [ $# -ne 0 ] ; then echo "Usage: ripng_common_get_version" exit 1 fi XRL="finder://ripng/common/0.1/get_version" call_xrl_wrapper -p all "${XRL}"}ripng_common_get_status(){ if [ $# -ne 0 ] ; then echo "Usage: ripng_common_get_status" exit 1 fi XRL="finder://ripng/common/0.1/get_status" call_xrl_wrapper -p all "${XRL}"}ripng_common_shutdown(){ if [ $# -ne 0 ] ; then echo "Usage: ripng_common_shutdown" exit 1 fi XRL="finder://ripng/common/0.1/shutdown" call_xrl_wrapper -p all "${XRL}"}ripng_finder_event_observer_xrl_target_birth(){ if [ $# -ne 2 ] ; then echo "Usage: ripng_finder_event_observer_xrl_target_birth <target_class:txt> <target_instance:txt>" exit 1 fi XRL="finder://ripng/finder_event_observer/0.1/xrl_target_birth?target_class:txt=$1&target_instance:txt=$2" call_xrl_wrapper -p all "${XRL}"}ripng_finder_event_observer_xrl_target_death(){ if [ $# -ne 2 ] ; then echo "Usage: ripng_finder_event_observer_xrl_target_death <target_class:txt> <target_instance:txt>" exit 1 fi XRL="finder://ripng/finder_event_observer/0.1/xrl_target_death?target_class:txt=$1&target_instance:txt=$2" call_xrl_wrapper -p all "${XRL}"}ripng_policy_backend_configure(){ if [ $# -ne 2 ] ; then echo "Usage: ripng_policy_backend_configure <filter:u32> <conf:txt>" exit 1 fi XRL="finder://ripng/policy_backend/0.1/configure?filter:u32=$1&conf:txt=$2" call_xrl_wrapper -p all "${XRL}"}ripng_policy_backend_reset(){ if [ $# -ne 1 ] ; then echo "Usage: ripng_policy_backend_reset <filter:u32>" exit 1 fi XRL="finder://ripng/policy_backend/0.1/reset?filter:u32=$1" call_xrl_wrapper -p all "${XRL}"}ripng_policy_backend_push_routes(){ if [ $# -ne 0 ] ; then echo "Usage: ripng_policy_backend_push_routes" exit 1 fi XRL="finder://ripng/policy_backend/0.1/push_routes" call_xrl_wrapper -p all "${XRL}"}ripng_policy_redist6_add_route6(){ if [ $# -ne 6 ] ; then echo "Usage: ripng_policy_redist6_add_route6 <network:ipv6net> <unicast:bool> <multicast:bool> <nexthop:ipv6> <metric:u32> <policytags:list>" exit 1 fi XRL="finder://ripng/policy_redist6/0.1/add_route6?network:ipv6net=$1&unicast:bool=$2&multicast:bool=$3&nexthop:ipv6=$4&metric:u32=$5&policytags:list=$6" call_xrl_wrapper -p all "${XRL}"}ripng_policy_redist6_delete_route6(){ if [ $# -ne 3 ] ; then echo "Usage: ripng_policy_redist6_delete_route6 <network:ipv6net> <unicast:bool> <multicast:bool>" exit 1 fi XRL="finder://ripng/policy_redist6/0.1/delete_route6?network:ipv6net=$1&unicast:bool=$2&multicast:bool=$3" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_add_rip_address(){ if [ $# -ne 3 ] ; then echo "Usage: ripng_ripng_add_rip_address <ifname:txt> <vifname:txt> <addr:ipv6>" exit 1 fi XRL="finder://ripng/ripng/0.1/add_rip_address?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_remove_rip_address(){ if [ $# -ne 3 ] ; then echo "Usage: ripng_ripng_remove_rip_address <ifname:txt> <vifname:txt> <addr:ipv6>" exit 1 fi XRL="finder://ripng/ripng/0.1/remove_rip_address?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_set_rip_address_enabled(){ if [ $# -ne 4 ] ; then echo "Usage: ripng_ripng_set_rip_address_enabled <ifname:txt> <vifname:txt> <addr:ipv6> <enabled:bool>" exit 1 fi XRL="finder://ripng/ripng/0.1/set_rip_address_enabled?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3&enabled:bool=$4" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_rip_address_enabled(){ if [ $# -ne 3 ] ; then echo "Usage: ripng_ripng_rip_address_enabled <ifname:txt> <vifname:txt> <addr:ipv6>" exit 1 fi XRL="finder://ripng/ripng/0.1/rip_address_enabled?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_set_cost(){ if [ $# -ne 4 ] ; then echo "Usage: ripng_ripng_set_cost <ifname:txt> <vifname:txt> <addr:ipv6> <cost:u32>" exit 1 fi XRL="finder://ripng/ripng/0.1/set_cost?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3&cost:u32=$4" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_cost(){ if [ $# -ne 3 ] ; then echo "Usage: ripng_ripng_cost <ifname:txt> <vifname:txt> <addr:ipv6>" exit 1 fi XRL="finder://ripng/ripng/0.1/cost?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_set_horizon(){ if [ $# -ne 4 ] ; then echo "Usage: ripng_ripng_set_horizon <ifname:txt> <vifname:txt> <addr:ipv6> <horizon:txt>" exit 1 fi XRL="finder://ripng/ripng/0.1/set_horizon?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3&horizon:txt=$4" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_horizon(){ if [ $# -ne 3 ] ; then echo "Usage: ripng_ripng_horizon <ifname:txt> <vifname:txt> <addr:ipv6>" exit 1 fi XRL="finder://ripng/ripng/0.1/horizon?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_set_passive(){ if [ $# -ne 4 ] ; then echo "Usage: ripng_ripng_set_passive <ifname:txt> <vifname:txt> <addr:ipv6> <passive:bool>" exit 1 fi XRL="finder://ripng/ripng/0.1/set_passive?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3&passive:bool=$4" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_passive(){ if [ $# -ne 3 ] ; then echo "Usage: ripng_ripng_passive <ifname:txt> <vifname:txt> <addr:ipv6>" exit 1 fi XRL="finder://ripng/ripng/0.1/passive?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_set_accept_non_rip_requests(){ if [ $# -ne 4 ] ; then echo "Usage: ripng_ripng_set_accept_non_rip_requests <ifname:txt> <vifname:txt> <addr:ipv6> <accept:bool>" exit 1 fi XRL="finder://ripng/ripng/0.1/set_accept_non_rip_requests?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3&accept:bool=$4" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_accept_non_rip_requests(){ if [ $# -ne 3 ] ; then echo "Usage: ripng_ripng_accept_non_rip_requests <ifname:txt> <vifname:txt> <addr:ipv6>" exit 1 fi XRL="finder://ripng/ripng/0.1/accept_non_rip_requests?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_set_accept_default_route(){ if [ $# -ne 4 ] ; then echo "Usage: ripng_ripng_set_accept_default_route <ifname:txt> <vifname:txt> <addr:ipv6> <accept:bool>" exit 1 fi XRL="finder://ripng/ripng/0.1/set_accept_default_route?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3&accept:bool=$4" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_accept_default_route(){ if [ $# -ne 3 ] ; then echo "Usage: ripng_ripng_accept_default_route <ifname:txt> <vifname:txt> <addr:ipv6>" exit 1 fi XRL="finder://ripng/ripng/0.1/accept_default_route?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_set_advertise_default_route(){ if [ $# -ne 4 ] ; then echo "Usage: ripng_ripng_set_advertise_default_route <ifname:txt> <vifname:txt> <addr:ipv6> <advertise:bool>" exit 1 fi XRL="finder://ripng/ripng/0.1/set_advertise_default_route?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3&advertise:bool=$4" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_advertise_default_route(){ if [ $# -ne 3 ] ; then echo "Usage: ripng_ripng_advertise_default_route <ifname:txt> <vifname:txt> <addr:ipv6>" exit 1 fi XRL="finder://ripng/ripng/0.1/advertise_default_route?ifname:txt=$1&vifname:txt=$2&addr:ipv6=$3" call_xrl_wrapper -p all "${XRL}"}ripng_ripng_set_route_timeout()
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -