📄 ospfv3.xif
字号:
/* $XORP: xorp/xrl/interfaces/ospfv3.xif,v 1.10 2007/03/12 10:16:05 atanu Exp $ *//* * OSPF v3 protocol XRL interface. */interface ospfv3/0.1 { /** * Set instance id */ set_instance_id ? id:u32 /** * Set router id */ set_router_id ? id:ipv4 /** * Set the router alert in the IP options. */ set_ip_router_alert ? ip_router_alert:bool /** * Create an area. * * @param area id of the area * @param type of area "border", "stub", "nssa" */ create_area_router ? area:ipv4 \ & type:txt /** * Change area type. * * @param area id of the area * @param type of area "border", "stub", "nssa" */ change_area_router_type ? area:ipv4 \ & type:txt /** * Destroy area. * * @param area id of the area */ destroy_area_router ? area:ipv4 /** * Create a binding to an interface. * * @param ifname the interface. * @param vifname virtual interface. * @param type of link "p2p", "broadcast", "nbma", "p2m", "vlink" * @param area */ create_peer ? ifname:txt \ & vifname:txt \ & type:txt \ & area:ipv4 /** * Delete peer. */ delete_peer ? ifname:txt \ & vifname:txt /** * Set the peer state up or down. */ set_peer_state ? ifname:txt \ & vifname:txt \ & enable:bool /** * Add an address to the peer. */ add_address_peer ? ifname:txt \ & vifname:txt \ & area:ipv4 \ & addr:ipv6 /** * Remove an address from the peer. */ remove_address_peer ? ifname:txt \ & vifname:txt \ & area:ipv4 \ & addr:ipv6 /** * Set the address state up or down. */ set_address_state_peer ? ifname:txt \ & vifname:txt \ & area:ipv4 \ & addr:ipv6 \ & enable:bool /** * Activate peer. * Called once the peer and child nodes have been configured. */ activate_peer ? ifname:txt \ & vifname:txt \ & area:ipv4 /** * Update peer. * Called if the peer and child nodes are modified. */ update_peer ? ifname:txt \ & vifname:txt \ & area:ipv4 /** * Add a neighbour to the peer. */ add_neighbour ? ifname:txt \ & vifname:txt \ & area:ipv4 \ & neighbour_address:ipv6 \ & neighbour_id:ipv4 /** * Remove a neighbour from the peer. */ remove_neighbour ? ifname:txt \ & vifname:txt \ & area:ipv4 \ & neighbour_address:ipv6 \ & neighbour_id:ipv4 /** * Create a virtual link. * * @param neighbour_id the router ID of the other end of the link. * @param area in which an attempt has been made to configure a virtual * link it has to be the backbone. Its just being passed in so it can * be checked by the protocol. */ create_virtual_link ? neighbour_id:ipv4 \ & area:ipv4 /** * Delete virtual link * * @param neighbour_id the router ID of the other end of the link. */ delete_virtual_link ? neighbour_id:ipv4 /** * The area through which the virtual link transits. * * @param neighbour_id the router ID of the other end of the link. * @param transit_area that the virtual link transits. */ transit_area_virtual_link ? neighbour_id:ipv4 \ & transit_area:ipv4 /** * The edge cost of this interface. */ set_interface_cost ? ifname:txt \ & vifname:txt \ & area:ipv4 \ & cost:u32 /** * RxmtInterval * The number of seconds between LSA retransmissions, for * adjacencies belonging to this interface. Also used when * retransmitting Database Description and Link State Request * Packets. This should be well over the expected round-trip * delay between any two routers on the attached network. The * setting of this value should be conservative or needless * retransmissions will result. Sample value for a local area * network: 5 seconds. * */ set_retransmit_interval ? ifname:txt \ & vifname:txt \ & area:ipv4 \ & interval:u32 /** * The estimated number of seconds it takes to transmit a Link * State Update Packet over this interface. LSAs contained in the * Link State Update packet will have their age incremented by this * amount before transmission. This value should take into account * transmission and propagation delays; it must be greater than * zero. */ set_inftransdelay ? ifname:txt \ & vifname:txt \ & area:ipv4 \ & delay:u32 /** * Used in the designated router election. */ set_router_priority ? ifname:txt \ & vifname:txt \ & area:ipv4 \ & priority:u32 /** * The interval between hello messages. */ set_hello_interval ? ifname:txt \ & vifname:txt \ & area:ipv4 \ & interval:u32 /** * The period to wait before considering a router dead. */ set_router_dead_interval ? ifname:txt \ & vifname:txt \ & area:ipv4 \ & interval:u32 /** * Toggle the passive status of an interface. */ set_passive ? ifname:txt \ & vifname:txt \ & area:ipv4 \ & passive:bool /** * If this is a "stub" or "nssa" area toggle the sending of a * default route. */ originate_default_route ? area:ipv4 \ & enable:bool /** * Set the StubDefaultCost, the default cost sent in a default route in * a "stub" or "nssa" area. */ stub_default_cost ? area:ipv4 \ & cost:u32 /** * Toggle the sending of summaries into "stub" or "nssa" areas. */ summaries ? area:ipv4 \ & enable:bool /** * Add area range. */ area_range_add ? area:ipv4 \ & net:ipv6net \ & advertise:bool /** * Delete area range. */ area_range_delete ? area:ipv4 \ & net:ipv6net \ /** * Change the advertised state of this area. */ area_range_change_state ? area:ipv4 \ & net:ipv6net \ & advertise:bool /** * Enable/Disable tracing. * * @param tvar trace variable. * @param enable set to true to enable false to disable. */ trace ? tvar:txt \ & enable:bool /** * Get a single lsa from an area. * * A stateless mechanism to get LSAs. The client of this interface * should start from zero and continue to request LSAs * (incrementing index) until toohigh becomes true. * * @param area database that is being searched. * @param index into database starting from 0. * @param valid true if a LSA has been returned. Some index values * do not contain LSAs. This should not be considered an error. * @param toohigh true if no more LSA exist after this index. * @param self if true this LSA was originated by this router. * @param lsa if valid is true the LSA at index. */ get_lsa ? area:ipv4 \ & index:u32 \ -> \ valid:bool \ & toohigh:bool \ & self:bool \ & lsa:binary /** * Get a list of all the configured areas. * * Return a list of u32 type values. Each value is an area ID. */ get_area_list -> areas:list /** * Get the list of neighbours. * * Return a list of u32 type values. Each value is an internal * identifier that can be used with the get_neighbour_info XRL. */ get_neighbour_list -> areas:list /** * Get information on a neighbour. * * @param nid neighbour ID returned by the get_neighbour_list. * @param address of neighbour in txt to allow IPv4 and IPv6. * @param interface with which the neighbour forms the adjacency. * @param state of the adjacency. * @param rid router ID of the neighbour. * @param priority of the neighbour (used for DR election). * @param deadtime time until neighbour is considered dead. * @param dead time in second before the adjacency will be considered down. * @param area the neighbour is in. * @param opt value in the neighbours hello packet. * @param dr designated router. * @param bdr backup designated router. * @param up time in seconds that the neigbour has been up. * @param adjacent time in seconds that there has been an adjacency. */ get_neighbour_info ? nid:u32 \ -> \ address:txt \ & interface:txt \ & state:txt \ & rid:ipv4 \ & priority:u32 \ & deadtime:u32 \ & area:ipv4 \ & opt:u32 \ & dr:ipv4 \ & bdr:ipv4 \ & up:u32 \ & adjacent:u32}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -