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

📄 vtysh_cmd.c

📁 大名鼎鼎的路由器源码。程序分ZEBRA、OSPFRIP等3个包。程序框架采用一个路由协议一个进程的方式
💻 C
📖 第 1 页 / 共 5 页
字号:
#include <zebra.h>#include "command.h"#include "vtysh.h"DEFSH (VTYSH_OSPF6D, show_ipv6_ospf6_route_flapping_cmd_vtysh,        "show ipv6 ospf6 route flapping",        "Show running system information\n"       "IPv6 Information\n"       "Open Shortest Path First (OSPF) for IPv6\n")DEFSH (VTYSH_BGPD, show_ipv6_mbgp_cmd_vtysh,        "show ipv6 mbgp",        "Show running system information\n"       "IP information\n"       "MBGP information\n")DEFSH (VTYSH_BGPD, show_ip_community_list_arg_cmd_vtysh,        "show ip community-list (<1-199>|WORD)",        "Show running system information\n"       "IP information\n"       "List community-list\n"       "Community-list number\n"       "Community-list name\n")DEFSH (VTYSH_OSPF6D, show_ipv6_ospf6_interface_cmd_vtysh,        "show ipv6 ospf6 interface",        "Show running system information\n"       "IPv6 Information\n"       "Open Shortest Path First (OSPF) for IPv6\n"       "Interface infomation\n"       )DEFSH (VTYSH_BGPD, no_neighbor_distribute_list_cmd_vtysh,        "no neighbor (A.B.C.D|X:X::X:X|WORD) " "distribute-list (<1-199>|<1300-2699>|WORD) (in|out)",        "Negate a command or set its defaults\n"       "Specify neighbor router\n"       "Neighbor address\nNeighbor IPv6 address\nNeighbor tag\n"       "Filter updates to/from this neighbor\n"       "IP access-list number\n"       "IP access-list number (expanded range)\n"       "IP Access-list name\n"       "Filter incoming updates\n"       "Filter outgoing updates\n")DEFSH (VTYSH_OSPFD, ospf_area_vlink_param1_cmd_vtysh,        "area (A.B.C.D|<0-4294967295>) virtual-link A.B.C.D "       "(hello-interval|retransmit-interval|transmit-delay|dead-interval) <1-65535>",        "OSPF area parameters\n" "OSPF area ID in IP address format\n" "OSPF area ID as a decimal value\n" "Configure a virtual link\n" "Router ID of the remote ABR\n"       "Time between HELLO packets\n" "Time between retransmitting lost link state advertisements\n" "Link state transmit delay\n" "Interval after which a neighbor is declared dead\n" "Seconds\n")DEFSH (VTYSH_RIPD, no_rip_offset_list_ifname_cmd_vtysh,        "no offset-list WORD (in|out) <0-16> IFNAME",        "Negate a command or set its defaults\n"       "Modify RIP metric\n"       "Access-list name\n"       "For incoming updates\n"       "For outgoing updates\n"       "Metric value\n"       "Interface to match\n")DEFSH (VTYSH_BGPD, clear_ip_bgp_all_ipv4_soft_in_cmd_vtysh,        "clear ip bgp * ipv4 (unicast|multicast) soft in",        "Reset functions\n"       "IP information\n"       "BGP information\n"       "Clear all peers\n"       "Address family\n"       "Address Family modifier\n"       "Address Family modifier\n"       "Soft reconfig\n"       "Soft reconfig inbound update\n")DEFSH (VTYSH_BGPD, no_neighbor_maximum_prefix_cmd_vtysh,        "no neighbor (A.B.C.D|X:X::X:X|WORD) " "maximum-prefix",        "Negate a command or set its defaults\n"       "Specify neighbor router\n"       "Neighbor address\nNeighbor IPv6 address\nNeighbor tag\n"       "Maximum number of prefix accept from this peer\n")DEFSH (VTYSH_BGPD, show_ipv6_mbgp_prefix_longer_cmd_vtysh,        "show ipv6 mbgp X:X::X:X/M longer-prefixes",        "Show running system information\n"       "IPv6 information\n"       "MBGP information\n"       "IPv6 prefix <network>/<length>,  e.g.,  3ffe::/16\n"       "Display route and more specific routes\n")DEFSH (VTYSH_OSPFD, no_ospf_area_vlink_param1_cmd_vtysh,        "no area (A.B.C.D|<0-4294967295>) virtual-link A.B.C.D "       "(hello-interval|retransmit-interval|transmit-delay|dead-interval)",        "Negate a command or set its defaults\n"       "OSPF area parameters\n" "OSPF area ID in IP address format\n" "OSPF area ID as a decimal value\n" "Configure a virtual link\n" "Router ID of the remote ABR\n"       "Time between HELLO packets\n" "Time between retransmitting lost link state advertisements\n" "Link state transmit delay\n" "Interval after which a neighbor is declared dead\n" "Seconds\n")DEFSH (VTYSH_BGPD, show_ipv6_mbgp_regexp_cmd_vtysh,        "show ipv6 mbgp regexp .LINE",        "Show running system information\n"       "IP information\n"       "BGP information\n"       "Display routes matching the AS path regular expression\n"       "A regular-expression to match the MBGP AS paths\n")DEFSH (VTYSH_RIPD, accept_lifetime_day_month_day_month_cmd_vtysh,        "accept-lifetime HH:MM:SS <1-31> MONTH <1993-2035> HH:MM:SS <1-31> MONTH <1993-2035>",        "Set accept lifetime of the key\n"       "Time to start\n"       "Day of th month to start\n"       "Month of the year to start\n"       "Year to start\n"       "Time to expire\n"       "Day of th month to expire\n"       "Month of the year to expire\n"       "Year to expire\n")DEFSH (VTYSH_BGPD, no_set_community_val_cmd_vtysh,        "no set community .AA:NN",        "Negate a command or set its defaults\n"       "Set values in destination routing protocol\n"       "BGP community attribute\n"       "Community number in aa:nn format or local-AS|no-advertise|no-export|internet or additive\n")DEFSH (VTYSH_BGPD, show_ipv6_bgp_community_list_exact_cmd_vtysh,        "show ipv6 bgp community-list WORD exact-match",        "Show running system information\n"       "IPv6 information\n"       "BGP information\n"       "Display routes matching the community-list\n"       "community-list name\n"       "Exact match of the communities\n")DEFSH (VTYSH_BGPD, no_neighbor_attr_unchanged9_cmd_vtysh,        "no neighbor (A.B.C.D|X:X::X:X|WORD) " "attribute-unchanged med next-hop as-path",        "Negate a command or set its defaults\n"       "Specify neighbor router\n"       "Neighbor address\nNeighbor IPv6 address\nNeighbor tag\n"       "BGP attribute is propagated unchanged to this neighbor\n"       "Med attribute\n"       "Nexthop attribute\n"       "As-path attribute\n")DEFSH (VTYSH_RIPNGD, ripng_redistribute_static_metric_cmd_vtysh,        "redistribute static metric <0-16>",        "Redistribute information from another routing protocol\n"       "Static routes\n"       "Metric\n"       "Metric value\n")DEFSH (VTYSH_OSPFD, no_debug_ospf_zebra_sub_cmd_vtysh,        "no debug ospf zebra (interface|redistribute)",        "Negate a command or set its defaults\n"       "Debugging functions (see also 'undebug')\n"       "OSPF information\n"       "OSPF Zebra information\n"       "Zebra interface\n"       "Zebra redistribute\n")DEFSH (VTYSH_RIPD, no_ip_rip_authentication_string_cmd_vtysh,        "no ip rip authentication string",        "Negate a command or set its defaults\n"       "IP information\n"       "Routing Information Protocol\n"       "Authentication control\n"       "Authentication string\n")DEFSH (VTYSH_BGPD, clear_ip_bgp_instance_all_soft_cmd_vtysh,        "clear ip bgp view WORD * soft",        "Reset functions\n"       "IP information\n"       "BGP information\n"       "BGP view\n"       "view name\n"       "Clear all peers\n"       "Soft reconfig\n")DEFSH (VTYSH_BGPD, show_bgp_community3_exact_cmd_vtysh,        "show bgp community (AA:NN|local-AS|no-advertise|no-export) (AA:NN|local-AS|no-advertise|no-export) (AA:NN|local-AS|no-advertise|no-export) exact-match",        "Show running system information\n"       "BGP information\n"       "Display routes matching the communities\n"       "community number\n"       "Do not send outside local AS (well-known community)\n"       "Do not advertise to any peer (well-known community)\n"       "Do not export to next AS (well-known community)\n"       "community number\n"       "Do not send outside local AS (well-known community)\n"       "Do not advertise to any peer (well-known community)\n"       "Do not export to next AS (well-known community)\n"       "community number\n"       "Do not send outside local AS (well-known community)\n"       "Do not advertise to any peer (well-known community)\n"       "Do not export to next AS (well-known community)\n"       "Exact match of the communities")DEFSH (VTYSH_RIPD, send_lifetime_day_month_month_day_cmd_vtysh,        "send-lifetime HH:MM:SS <1-31> MONTH <1993-2035> HH:MM:SS MONTH <1-31> <1993-2035>",        "Set send lifetime of the key\n"       "Time to start\n"       "Day of th month to start\n"       "Month of the year to start\n"       "Year to start\n"       "Time to expire\n"       "Month of the year to expire\n"       "Day of th month to expire\n"       "Year to expire\n")DEFSH (VTYSH_BGPD, no_ipv6_bgp_network_route_map_cmd_vtysh,        "no network X:X::X:X/M route-map WORD",        "Negate a command or set its defaults\n"       "Specify a network to announce via BGP\n"       "IPv6 prefix <network>/<length>\n"       "Route-map to modify the attributes\n"       "Name of the route map\n")DEFSH (VTYSH_ZEBRA, no_ip_route_distance_cmd_vtysh,        "no ip route A.B.C.D/M (A.B.C.D|INTERFACE|null0) <1-255>",        "Negate a command or set its defaults\n"       "IP information\n"       "Establish static routes\n"       "IP destination prefix (e.g. 10.0.0.0/8)\n"       "IP gateway address\n"       "IP gateway interface name\n"       "Null interface\n"       "Distance value for this route\n")DEFSH (VTYSH_BGPD, no_match_origin_val_cmd_vtysh,        "no match origin (egp|igp|incomplete)",        "Negate a command or set its defaults\n"       "Match values from routing table\n"       "BGP origin code\n"       "remote EGP\n"       "local IGP\n"       "unknown heritage\n")DEFSH (VTYSH_BGPD, show_bgp_ipv6_neighbor_advertised_route_cmd_vtysh,        "show bgp ipv6 neighbors (A.B.C.D|X:X::X:X) advertised-routes",        "Show running system information\n"       "BGP information\n"       "Address family\n"       "Detailed information on TCP and BGP neighbor connections\n"       "Neighbor to display information about\n"       "Neighbor to display information about\n"       "Display the routes advertised to a BGP neighbor\n")DEFSH (VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPF6D, no_router_zebra_cmd_vtysh,        "no router zebra",        "Negate a command or set its defaults\n"       "Configure routing process\n"       "Disable connection to zebra daemon\n")DEFSH (VTYSH_BGPD, no_router_bgp_cmd_vtysh,        "no router bgp <1-65535>",        "Negate a command or set its defaults\n"       "Enable a routing process\n"       "BGP information\n"       "AS number\n")DEFSH (VTYSH_ZEBRA, show_ip_route_cmd_vtysh,        "show ip route",        "Show running system information\n"       "IP information\n"       "IP routing table\n")DEFSH (VTYSH_OSPF6D, no_ospf6_interface_area_cmd_vtysh,        "no interface IFNAME area A.B.C.D",        "Negate a command or set its defaults\n"       "Disable routing on an IPv6 interface\n"       "Interface name(e.g. ep0)\n")DEFSH (VTYSH_BGPD, clear_bgp_all_cmd_vtysh,        "clear bgp *",        "Reset functions\n"       "BGP information\n"       "Clear all peers\n")DEFSH (VTYSH_BGPD, no_neighbor_default_originate_rmap_cmd_vtysh,        "no neighbor (A.B.C.D|X:X::X:X|WORD) " "default-originate route-map WORD",        "Negate a command or set its defaults\n"       "Specify neighbor router\n"       "Neighbor address\nNeighbor IPv6 address\nNeighbor tag\n"       "Originate default route to this neighbor\n"       "Route-map to specify criteria to originate default\n"       "route-map name\n")DEFSH (VTYSH_ZEBRA, ipv6_nd_ra_interval_cmd_vtysh,        "ipv6 nd ra-interval SECONDS",        "IP information\n"       "Neighbor discovery\n"       "Router Advertisement interval\n"       "Router Advertisement interval in seconds\n")DEFSH (VTYSH_BGPD, show_ip_bgp_ipv4_summary_cmd_vtysh,        "show ip bgp ipv4 (unicast|multicast) summary",        "Show running system information\n"       "IP information\n"       "BGP information\n"       "Address family\n"       "Address Family modifier\n"       "Address Family modifier\n"       "Summary of BGP neighbor status\n")DEFSH (VTYSH_OSPFD, ospf_transmit_delay_cmd_vtysh,        "ospf transmit-delay <1-65535>",        "OSPF interface commands\n"       "Link state transmit delay\n"       "Seconds\n")DEFSH (VTYSH_RIPNGD, no_ripng_default_metric_cmd_vtysh,        "no default-metric",        "Negate a command or set its defaults\n"       "Set a metric of redistribute routes\n"       "Default metric\n")DEFSH (VTYSH_BGPD, show_ip_bgp_vpnv4_rd_summary_cmd_vtysh,        "show ip bgp vpnv4 rd ASN:nn_or_IP-address:nn summary",        "Show running system information\n"       "IP information\n"       "BGP information\n"       "Display VPNv4 NLRI specific information\n"       "Display information for a route distinguisher\n"       "VPN Route Distinguisher\n"       "Summary of BGP neighbor status\n")DEFSH (VTYSH_OSPFD|VTYSH_OSPF6D, set_metric_type_cmd_vtysh,        "set metric-type (type-1|type-2)",        "Set values in destination routing protocol\n"       "Type of metric for destination routing protocol\n"       "OSPF external type 1 metric\n"       "OSPF external type 2 metric\n")DEFSH (VTYSH_OSPFD, ospf_area_range_substitute_cmd_vtysh,        "area (A.B.C.D|<0-4294967295>) range A.B.C.D/M substitute A.B.C.D/M",        "OSPF area parameters\n"       "OSPF area ID in IP address format\n"       "OSPF area ID as a decimal value\n"       "Summarize routes matching address/mask (border routers only)\n"       "Area range prefix\n"

⌨️ 快捷键说明

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