⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 static_routes.tp

📁 xorp源码hg
💻 TP
📖 第 1 页 / 共 3 页
字号:
		}	    }	}	route4 @: ipv4net {	    %deprecated: "Statement 'route4' is replaced with 'route'";	    %help:	short "Configure an IPv4 static route";	    %mandatory:	$(@.next-hop);	    %create:	xrl "$(static.targetname)/static_routes/0.1/add_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=$(@)&nexthop:ipv4=$(@.next-hop)&metric:u32=$(@.metric)";	    %update:	xrl "$(static.targetname)/static_routes/0.1/replace_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=$(@)&nexthop:ipv4=$(@.next-hop)&metric:u32=$(@.metric)";	    %delete:	xrl "$(static.targetname)/static_routes/0.1/delete_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=$(@)&nexthop:ipv4=$(@.next-hop)";	    next-hop {		%help:	short "Configure the next-hop router";		%set:;	    }	    nexthop {		%deprecated: "Statement 'nexthop' is replaced with 'next-hop'";		%help:	short "Configure the next-hop router";		%set:;	    }	    metric {		%help:	short "Configure the routing metric";		%allow-range: $(@) "1" "65535" %help: "The routing metric";		%set:;	    }	}	route6 @: ipv6net {	    %deprecated: "Statement 'route6' is replaced with 'route'";	    %help:	short "Configure an IPv6 static route";	    %mandatory:	$(@.next-hop);	    %create: xrl "$(static.targetname)/static_routes/0.1/add_route6?unicast:bool=true&multicast:bool=false&network:ipv6net=$(@)&nexthop:ipv6=$(@.next-hop)&metric:u32=$(@.metric)";	    %update: xrl "$(static.targetname)/static_routes/0.1/replace_route6?unicast:bool=true&multicast:bool=false&network:ipv6net=$(@)&nexthop:ipv6=$(@.next-hop)&metric:u32=$(@.metric)";	    %delete: xrl "$(static.targetname)/static_routes/0.1/delete_route6?unicast:bool=true&multicast:bool=false&network:ipv6net=$(@)&nexthop:ipv6=$(@.next-hop)";	    next-hop {		%help:	short "Configure the next-hop router";		%set:;	    }	    nexthop {		%deprecated: "Statement 'nexthop' is replaced with 'next-hop'";		%help:	short "Configure the next-hop router";		%set:;	    }	    metric {		%help:	short "Configure the routing metric";		%allow-range: $(@) "1" "65535" %help: "The routing metric";		%set:;	    }	}	interface-route @: ipv4net {	    %help:	short "Configure an interface-based static route";	    %mandatory:	$(@.next-hop-interface), $(@.next-hop-vif);	    %create:	xrl "$(static.targetname)/static_routes/0.1/add_interface_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=$(@)&nexthop:ipv4=$(@.next-hop-router)&ifname:txt=$(@.next-hop-interface)&vifname:txt=$(@.next-hop-vif)&metric:u32=$(@.metric)";	    %update:	xrl "$(static.targetname)/static_routes/0.1/replace_interface_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=$(@)&nexthop:ipv4=$(@.next-hop-router)&ifname:txt=$(@.next-hop-interface)&vifname:txt=$(@.next-hop-vif)&metric:u32=$(@.metric)";	    %delete:	xrl "$(static.targetname)/static_routes/0.1/delete_interface_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=$(@)&nexthop:ipv4=$(@.next-hop)&ifname:txt=$(@.next-hop-interface)&vifname:txt=$(@.next-hop-vif)";	    next-hop-interface {		%help:	short "Configure the next-hop network interface name";		%set:;	    }	    next-hop-vif {		%help:	short "Configure the next-hop virtual interface name";		%set:;	    }	    next-hop-router {		%help:	short "Configure the optional next-hop router";		%set:;	    }	    metric {		%help:	short "Configure the routing metric";		%allow-range: $(@) "1" "65535" %help: "The routing metric";		%set:;	    }	    qualified-next-hop-interface @: txt {		%help:		short "Next hop interface name with qualifiers";		qualified-next-hop-vif @: txt {		    %help:	short "Next hop virtual interface name with qualifiers";		    %create:	xrl "$(static.targetname)/static_routes/0.1/add_backup_interface_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=$(interface-route.@)&nexthop:ipv4=$(@.next-hop-router)&ifname:txt=$(qualified-next-hop-interface.@)&vifname:txt=$(qualified-next-hop-vif.@)&metric:u32=$(@.metric)";		    %update:	xrl "$(static.targetname)/static_routes/0.1/replace_backup_interface_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=$(interface-route.@)&nexthop:ipv4=$(@.next-hop-router)&ifname:txt=$(qualified-next-hop-interface.@)&vifname:txt=$(qualified-next-hop-vif.@)&metric:u32=$(@.metric)";		    %delete:	xrl "$(static.targetname)/static_routes/0.1/delete_backup_interface_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=$(interface-route.@)&nexthop:ipv4=$(@.next-hop)&ifname:txt=$(qualified-next-hop-interface.@)&vifname:txt=$(qualified-next-hop-vif.@)";		    next-hop-router {			%help:	short "Configure the optional next-hop router";			%set:;		    }		    metric {			%help:	short "Configure the routing metric";			%allow-range: $(@) "1" "65535" %help: "The routing metric";			%set:;		    }		}	    }	}	interface-route @: ipv6net {	    %help:	short "Configure an interface-based static route";	    %mandatory:	$(@.next-hop-interface), $(@.next-hop-vif);	    %create: xrl "$(static.targetname)/static_routes/0.1/add_interface_route6?unicast:bool=true&multicast:bool=false&network:ipv6net=$(@)&nexthop:ipv6=$(@.next-hop-router)&ifname:txt=$(@.next-hop-interface)&vifname:txt=$(@.next-hop-vif)&metric:u32=$(@.metric)";	    %update: xrl "$(static.targetname)/static_routes/0.1/replace_interface_route6?unicast:bool=true&multicast:bool=false&network:ipv6net=$(@)&nexthop:ipv6=$(@.next-hop-router)&ifname:txt=$(@.next-hop-interface)&vifname:txt=$(@.next-hop-vif)&metric:u32=$(@.metric)";	    %delete: xrl "$(static.targetname)/static_routes/0.1/delete_interface_route6?unicast:bool=true&multicast:bool=false&network:ipv6net=$(@)&nexthop:ipv6=$(@.next-hop)&ifname:txt=$(@.next-hop-interface)&vifname:txt=$(@.next-hop-vif)";	    next-hop-interface {		%help:	short "Configure the next-hop network interface name";		%set:;	    }	    next-hop-vif {		%help:	short "Configure the next-hop virtual interface name";		%set:;	    }	    next-hop-router {		%help:	short "Configure the optional next-hop router";		%set:;	    }	    metric {		%help:	short "Configure the routing metric";		%allow-range: $(@) "1" "65535" %help: "The routing metric";		%set:;	    }	    qualified-next-hop-interface @: txt {		%help:		short "Next hop interface name with qualifiers";		qualified-next-hop-vif @: txt {		    %help:	short "Next hop virtual interface name with qualifiers";		    %create:	xrl "$(static.targetname)/static_routes/0.1/add_backup_interface_route6?unicast:bool=true&multicast:bool=false&network:ipv6net=$(interface-route.@)&nexthop:ipv6=$(@.next-hop-router)&ifname:txt=$(qualified-next-hop-interface.@)&vifname:txt=$(qualified-next-hop-vif.@)&metric:u32=$(@.metric)";		    %update:	xrl "$(static.targetname)/static_routes/0.1/replace_backup_interface_route6?unicast:bool=true&multicast:bool=false&network:ipv6net=$(interface-route.@)&nexthop:ipv6=$(@.next-hop-router)&ifname:txt=$(qualified-next-hop-interface.@)&vifname:txt=$(qualified-next-hop-vif.@)&metric:u32=$(@.metric)";		    %delete:	xrl "$(static.targetname)/static_routes/0.1/delete_backup_interface_route6?unicast:bool=true&multicast:bool=false&network:ipv6net=$(interface-route.@)&nexthop:ipv6=$(@.next-hop)&ifname:txt=$(qualified-next-hop-interface.@)&vifname:txt=$(qualified-next-hop-vif.@)";		    next-hop-router {			%help:	short "Configure the optional next-hop router";			%set:;		    }		    metric {			%help:	short "Configure the routing metric";			%allow-range: $(@) "1" "65535" %help: "The routing metric";			%set:;		    }		}	    }	}	interface-route4 @: ipv4net {	    %deprecated: "Statement 'interface-route4' is replaced with 'interface-route'";	    %help:	short "Configure an interface-based IPv4 static route";	    %mandatory:	$(@.next-hop-interface), $(@.next-hop-vif);	    %create:	xrl "$(static.targetname)/static_routes/0.1/add_interface_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=$(@)&nexthop:ipv4=$(@.next-hop-router)&ifname:txt=$(@.next-hop-interface)&vifname:txt=$(@.next-hop-vif)&metric:u32=$(@.metric)";	    %update:	xrl "$(static.targetname)/static_routes/0.1/replace_interface_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=$(@)&nexthop:ipv4=$(@.next-hop-router)&ifname:txt=$(@.next-hop-interface)&vifname:txt=$(@.next-hop-vif)&metric:u32=$(@.metric)";	    %delete:	xrl "$(static.targetname)/static_routes/0.1/delete_interface_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=$(@)&nexthop:ipv4=$(@.next-hop-router)&ifname:txt=$(@.next-hop-interface)&vifname:txt=$(@.next-hop-vif)";	    next-hop-interface {		%help:	short "Configure the next-hop network interface name";		%set:;	    }	    next-hop-vif {		%help:	short "Configure the next-hop virtual interface name";		%set:;	    }	    next-hop-router {		%help:	short "Configure the optional next-hop router";		%set:;	    }	    metric {		%help:	short "Configure the routing metric";		%allow-range: $(@) "1" "65535" %help: "The routing metric";		%set:;	    }	}	interface-route6 @: ipv6net {	    %deprecated: "Statement 'interface-route6' is replaced with 'interface-route'";	    %help:	short "Configure an interface-based IPv6 static route";	    %mandatory:	$(@.next-hop-interface), $(@.next-hop-vif);	    %create: xrl "$(static.targetname)/static_routes/0.1/add_interface_route6?unicast:bool=true&multicast:bool=false&network:ipv6net=$(@)&nexthop:ipv6=$(@.next-hop-router)&ifname:txt=$(@.next-hop-interface)&vifname:txt=$(@.next-hop-vif)&metric:u32=$(@.metric)";	    %update: xrl "$(static.targetname)/static_routes/0.1/replace_interface_route6?unicast:bool=true&multicast:bool=false&network:ipv6net=$(@)&nexthop:ipv6=$(@.next-hop-router)&ifname:txt=$(@.next-hop-interface)&vifname:txt=$(@.next-hop-vif)&metric:u32=$(@.metric)";	    %delete: xrl "$(static.targetname)/static_routes/0.1/delete_interface_route6?unicast:bool=true&multicast:bool=false&network:ipv6net=$(@)&nexthop:ipv6=$(@.next-hop-router)&ifname:txt=$(@.next-hop-interface)&vifname:txt=$(@.next-hop-vif)";	    next-hop-interface {		%help:	short "Configure the next-hop network interface name";		%set:;	    }	    next-hop-vif {		%help:	short "Configure the next-hop virtual interface name";		%set:;	    }	    next-hop-router {		%help:	short "Configure the optional next-hop router";		%set:;	    }	    metric {		%help:	short "Configure the routing metric";		%allow-range: $(@) "1" "65535" %help: "The routing metric";		%set:;	    }	}	mrib-route @: ipv4net {	    %help:	short "Configure a multicast-specific static route";	    %mandatory:	$(@.next-hop);	    %create: xrl "$(static.targetname)/static_routes/0.1/add_route4?unicast:bool=false&multicast:bool=true&network:ipv4net=$(@)&nexthop:ipv4=$(@.next-hop)&metric:u32=$(@.metric)";	    %update: xrl "$(static.targetname)/static_routes/0.1/replace_route4?unicast:bool=false&multicast:bool=true&network:ipv4net=$(@)&nexthop:ipv4=$(@.next-hop)&metric:u32=$(@.metric)";	    %delete: xrl "$(static.targetname)/static_routes/0.1/delete_route4?unicast:bool=false&multicast:bool=true&network:ipv4net=$(@)&nexthop:ipv4=$(@.next-hop)";	    next-hop {		%help:	short "Configure the next-hop router";		%set:;	    }	    nexthop {		%deprecated: "Statement 'nexthop' is replaced with 'next-hop'";		%help:	short "Configure the next-hop router";		%set:;	    }	    metric {		%help:	short "Configure the routing metric";		%allow-range: $(@) "1" "65535" %help: "The routing metric";		%set:;	    }	    qualified-next-hop @: ipv4 {		%help:		short "Next hop with qualifiers";		%create:	xrl "$(static.targetname)/static_routes/0.1/add_backup_route4?unicast:bool=false&multicast:bool=true&network:ipv4net=$(mrib-route.@)&nexthop:ipv4=$(@)&metric:u32=$(@.metric)";		%update:	xrl "$(static.targetname)/static_routes/0.1/replace_backup_route4?unicast:bool=false&multicast:bool=true&network:ipv4net=$(mrib-route.@)&nexthop:ipv4=$(@)&metric:u32=$(@.metric)";		%delete:	xrl "$(static.targetname)/static_routes/0.1/delete_backup_route4?unicast:bool=false&multicast:bool=true&network:ipv4net=$(mrib-route.@)&nexthop:ipv4=$(@)";		metric {		    %help:	short "Configure the routing metric";		    %allow-range: $(@) "1" "65535" %help: "The routing metric";		    %set:;		}	    }	}	mrib-route @: ipv6net {	    %help:	short "Configure a multicast-specific static route";	    %mandatory:	$(@.next-hop);	    %create: xrl "$(static.targetname)/static_routes/0.1/add_route6?unicast:bool=false&multicast:bool=true&network:ipv6net=$(@)&nexthop:ipv6=$(@.next-hop)&metric:u32=$(@.metric)";	    %update: xrl "$(static.targetname)/static_routes/0.1/replace_route6?unicast:bool=false&multicast:bool=true&network:ipv6net=$(@)&nexthop:ipv6=$(@.next-hop)&metric:u32=$(@.metric)";	    %delete: xrl "$(static.targetname)/static_routes/0.1/delete_route6?unicast:bool=false&multicast:bool=true&network:ipv6net=$(@)&nexthop:ipv6=$(@.next-hop)";	    next-hop {		%help:	short "Configure the next-hop router";		%set:;	    }	    nexthop {		%deprecated: "Statement 'nexthop' is replaced with 'next-hop'";		%help:	short "Configure the next-hop router";		%set:;	    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -