📄 ospfv3.tp
字号:
/* $XORP: xorp/etc/templates/ospfv3.tp,v 1.8 2007/03/12 10:16:03 atanu Exp $ */protocols { ospf6 @: u32 { targetname: txt = "ospfv3"; router-id: ipv4; ip-router-alert: bool = false; traceoptions { flag { all { disable: toggle = false; } } } area @: ipv4 { area-type: txt = "normal"; default-lsa { disable: toggle = false; metric: u32 = 0; } summaries { disable: toggle = false; } area-range @: ipv6net { advertise: bool = true; } virtual-link @: ipv4 { transit-area: ipv4; hello-interval: u32 = 10; router-dead-interval: u32 = 40; retransmit-interval: u32 = 5; transit-delay: u32 = 1; } interface @: txt { link-type: txt = "broadcast"; vif @: txt { address @: ipv6 { disable: toggle = false; } priority: u32 = 128; hello-interval: u32 = 10; router-dead-interval: u32 = 40; interface-cost: u32 = 1; retransmit-interval: u32 = 5; transit-delay: u32 = 1; passive: bool = false; neighbor @: ipv4 { router-id: ipv4; } disable: toggle = false; } } } import: txt; export: txt; }}policy { policy-statement @: txt { term @: txt { from { nexthop4: ipv4range; metric: u32range; ebit: bool; tag: u32range; } to { nexthop4: ipv4range; metric: u32range; ebit: bool; tag: u32range; } then { nexthop4: ipv4; metric: u32; ebit: bool; tag: u32; } } }}protocols { ospf6 @: u32 { %help: short "Configure the OSPF protocol"; %modinfo: provides ospf6; %modinfo: depends rib; %modinfo: depends policy; %modinfo: path "ospf/xorp_ospfv3"; %modinfo: default_targetname "ospfv3"; %modinfo: status_method xrl "$(ospf6.@.targetname)/common/0.1/get_status->status:u32&reason:txt"; %modinfo: shutdown_method xrl "$(ospf6.@.targetname)/common/0.1/shutdown"; %create: xrl "$(ospf6.@.targetname)/ospfv3/0.1/set_instance_id?id:u32=$(ospf6.@)"; %mandatory: $(@.router-id); %mandatory: $(@.targetname); targetname { %user-hidden: "XRL target name"; %help: short "XRL target name"; %set:; } router-id { %help: short "A unique 32-bit identifier within this AS"; %help: long"A 32-bit number assigned to each router runningthe OSPF protocol. This number uniquely identifiesthe router within an Autonomous System"; %set: xrl "$(ospf6.@.targetname)/ospfv3/0.1/set_router_id?id:ipv4=$(@)"; } ip-router-alert { %help: short "Send the IP router alert option in packets"; %help: long"If this option is true the IP router alert option will be set in alltransmitted packets"; %set: xrl "$(ospf6.@.targetname)/ospfv3/0.1/set_ip_router_alert?ip_router_alert:bool=$(@)"; %delete: xrl "$(ospf6.@.targetname)/ospfv3/0.1/set_ip_router_alert?ip_router_alert:bool=$(DEFAULT)"; } area @: ipv4 { %help: short "The OSPF area to which the attached network belongs"; area-type { %help: short "Type of area"; %allow: $(@) "normal" %help: "OSPF normal area"; %allow: $(@) "stub" %help: "OSPF stubby area"; %allow: $(@) "nssa" %help: "OSPF not-so-stubby area"; %set: xrl "$(ospf6.@.targetname)/ospfv3/0.1/change_area_router_type?area:ipv4=$(area.@)&type:txt=$(@)"; %delete: xrl "$(ospf6.@.targetname)/ospfv3/0.1/change_area_router_type?area:ipv4=$(area.@)&type:txt=$(DEFAULT)"; } %create: xrl "$(ospf6.@.targetname)/ospfv3/0.1/create_area_router?area:ipv4=$(@)&type:txt=$(@.area-type)"; %delete: xrl "$(ospf6.@.targetname)/ospfv3/0.1/destroy_area_router?area:ipv4=$(@)"; default-lsa { %help: short "Originate default route in stub or not-so-stubby areas"; disable { %help: short "disable the origination of the default route"; %set: xrl "$(ospf6.@.targetname)/ospfv3/0.1/originate_default_route?area:ipv4=$(area.@)&enable:bool=`~$(@)`"; %delete: xrl "$(ospf6.@.targetname)/ospfv3/0.1/originate_default_route?area:ipv4=$(area.@)&enable:bool=$(DEFAULT)"; } metric { %help: short "Metric of default route"; %set: xrl "$(ospf6.@.targetname)/ospfv3/0.1/stub_default_cost?area:ipv4=$(area.@)&cost:u32=$(@)"; %delete: xrl "$(ospf6.@.targetname)/ospfv3/0.1/stub_default_cost?area:ipv4=$(area.@)&cost:u32=$(DEFAULT)"; } } summaries { %help: short "Generate summaries into stub or not-so-stubby areas"; disable { %help: short "disable summaries into stub or not-so-stubby areas"; %set: xrl "$(ospf6.@.targetname)/ospfv3/0.1/summaries?area:ipv4=$(area.@)&enable:bool=`~$(@)`"; %delete: xrl "$(ospf6.@.targetname)/ospfv3/0.1/summaries?area:ipv4=$(area.@)&enable:bool=$(DEFAULT)"; } } area-range @: ipv6net { %help: short "Area range for generating summaries"; %create: xrl "$(ospf6.@.targetname)/ospfv3/0.1/area_range_add?area:ipv4=$(area.@)&net:ipv6net=$(@)&advertise:bool=$(@.advertise)"; %delete: xrl "$(ospf6.@.targetname)/ospfv3/0.1/area_range_delete?area:ipv4=$(area.@)&net:ipv6net=$(@)"; advertise { %help: short "Advertise or DoNotAdvertise"; %set: xrl "$(ospf6.@.targetname)/ospfv3/0.1/area_range_change_state?area:ipv4=$(area.@)&net:ipv6net=$(area-range.@)&advertise:bool=$(@)"; %delete: xrl "$(ospf6.@.targetname)/ospfv3/0.1/area_range_change_state?area:ipv4=$(area.@)&net:ipv6net=$(area-range.@)&advertise:bool=$(DEFAULT)"; } } virtual-link @: ipv4 { %help: short "Virtual link"; %create: xrl "$(ospf6.@.targetname)/ospfv3/0.1/create_virtual_link?neighbour_id:ipv4=$(virtual-link.@)&area:ipv4=$(area.@)"; %delete: xrl "$(ospf6.@.targetname)/ospfv3/0.1/delete_virtual_link?neighbour_id:ipv4=$(virtual-link.@)"; transit-area { %help: short "Area through which to transit"; %set: xrl "$(ospf6.@.targetname)/ospfv3/0.1/transit_area_virtual_link?neighbour_id:ipv4=$(virtual-link.@)&transit_area:ipv4=$(@)"; %delete: xrl "$(ospf6.@.targetname)/ospfv3/0.1/transit_area_virtual_link?neighbour_id:ipv4=$(virtual-link.@)&transit_area:ipv4=$(DEFAULT)"; } hello-interval { %help: short "Hello packets sent every interval seconds"; %allow-range: $(@) "1" "65535" %help: "The Hello packets interval (in seconds)"; %set: xrl "$(ospf6.@.targetname)/ospfv3/0.1/set_hello_interval?ifname:txt=vlink&vifname:txt=$(virtual-link.@)&area:ipv4=$(area.@)&interval:u32=$(@)"; %delete: xrl "$(ospf6.@.targetname)/ospfv3/0.1/set_hello_interval?ifname:txt=vlink&vifname:txt=$(virtual-link.@)&area:ipv4=$(area.@)&interval:u32=$(DEFAULT)"; } router-dead-interval { %help: short "Seconds to wait before considering a neighbor dead"; %allow-range: $(@) "1" "4294967295" %help: "The neighbor router dead interval (in seconds)"; %set: xrl "$(ospf6.@.targetname)/ospfv3/0.1/set_router_dead_interval?ifname:txt=vlink&vifname:txt=$(virtual-link.@)&area:ipv4=$(area.@)&interval:u32=$(@)"; %delete: xrl "$(ospf6.@.targetname)/ospfv3/0.1/set_router_dead_interval?ifname:txt=vlink&vifname:txt=$(virtual-link.@)&area:ipv4=$(area.@)&interval:u32=$(DEFAULT)"; } retransmit-interval { %help: short "The retransmit interval (RxmtInterval)"; %allow-range: $(@) "1" "65535" %help: "The retransmit interval (in seconds)"; %set: xrl "$(ospf6.@.targetname)/ospfv3/0.1/set_retransmit_interval?ifname:txt=vlink&vifname:txt=$(virtual-link.@)&area:ipv4=$(area.@)&interval:u32=$(@)"; %delete: xrl "$(ospf6.@.targetname)/ospfv3/0.1/set_retransmit_interval?ifname:txt=vlink&vifname:txt=$(virtual-link.@)&area:ipv4=$(area.@)&interval:u32=$(DEFAULT)"; } transit-delay { %help: short "Add to age field of all transmitted LSAs"; %allow-range: $(@) "0" "3600" %help: "The extra addition to age field of all transmitted LSAs";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -