ospf6d: fix DEFUN formatting wrecked by clang

clang-format doesn't understand `DEFUN` and formats it rather ugly.
Standard approach was to skip these in clang-format, which hasn't
happened here sadly.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2024-04-25 11:45:19 +02:00
parent 7ba58e97ff
commit b47657600b
2 changed files with 458 additions and 246 deletions

View file

@ -1395,10 +1395,17 @@ static int show_ospf6_interface_common(struct vty *vty, vrf_id_t vrf_id,
} }
/* show interface */ /* show interface */
DEFUN(show_ipv6_ospf6_interface, show_ipv6_ospf6_interface_ifname_cmd, DEFUN(show_ipv6_ospf6_interface,
show_ipv6_ospf6_interface_ifname_cmd,
"show ipv6 ospf6 [vrf <NAME|all>] interface [IFNAME] [json]", "show ipv6 ospf6 [vrf <NAME|all>] interface [IFNAME] [json]",
SHOW_STR IP6_STR OSPF6_STR VRF_CMD_HELP_STR SHOW_STR
"All VRFs\n" INTERFACE_STR IFNAME_STR JSON_STR) IP6_STR
OSPF6_STR
VRF_CMD_HELP_STR
"All VRFs\n"
INTERFACE_STR
IFNAME_STR
JSON_STR)
{ {
int idx_ifname = 4; int idx_ifname = 4;
int intf_idx = 5; int intf_idx = 5;
@ -1598,11 +1605,18 @@ static int ospf6_interface_show_traffic_common(struct vty *vty, int argc,
} }
/* show interface */ /* show interface */
DEFUN(show_ipv6_ospf6_interface_traffic, show_ipv6_ospf6_interface_traffic_cmd, DEFUN(show_ipv6_ospf6_interface_traffic,
show_ipv6_ospf6_interface_traffic_cmd,
"show ipv6 ospf6 [vrf <NAME|all>] interface traffic [IFNAME] [json]", "show ipv6 ospf6 [vrf <NAME|all>] interface traffic [IFNAME] [json]",
SHOW_STR IP6_STR OSPF6_STR VRF_CMD_HELP_STR SHOW_STR
"All VRFs\n" INTERFACE_STR IP6_STR
"Protocol Packet counters\n" IFNAME_STR JSON_STR) OSPF6_STR
VRF_CMD_HELP_STR
"All VRFs\n"
INTERFACE_STR
"Protocol Packet counters\n"
IFNAME_STR
JSON_STR)
{ {
struct ospf6 *ospf6; struct ospf6 *ospf6;
struct listnode *node; struct listnode *node;
@ -1631,17 +1645,21 @@ DEFUN(show_ipv6_ospf6_interface_traffic, show_ipv6_ospf6_interface_traffic_cmd,
DEFUN(show_ipv6_ospf6_interface_ifname_prefix, DEFUN(show_ipv6_ospf6_interface_ifname_prefix,
show_ipv6_ospf6_interface_ifname_prefix_cmd, show_ipv6_ospf6_interface_ifname_prefix_cmd,
"show ipv6 ospf6 [vrf <NAME|all>] interface IFNAME prefix\ "show ipv6 ospf6 [vrf <NAME|all>] interface IFNAME prefix "
[<\ "[<detail|<X:X::X:X|X:X::X:X/M> [<match|detail>]>] [json]",
detail\ SHOW_STR
|<X:X::X:X|X:X::X:X/M> [<match|detail>]\ IP6_STR
>] [json]", OSPF6_STR
SHOW_STR IP6_STR OSPF6_STR VRF_CMD_HELP_STR VRF_CMD_HELP_STR
"All VRFs\n" INTERFACE_STR IFNAME_STR "All VRFs\n"
INTERFACE_STR IFNAME_STR
"Display connected prefixes to advertise\n" "Display connected prefixes to advertise\n"
"Display details of the prefixes\n" OSPF6_ROUTE_ADDRESS_STR "Display details of the prefixes\n"
OSPF6_ROUTE_PREFIX_STR OSPF6_ROUTE_MATCH_STR OSPF6_ROUTE_ADDRESS_STR
"Display details of the prefixes\n" JSON_STR) OSPF6_ROUTE_PREFIX_STR
OSPF6_ROUTE_MATCH_STR
"Display details of the prefixes\n"
JSON_STR)
{ {
int idx_ifname = 4; int idx_ifname = 4;
int idx_prefix = 6; int idx_prefix = 6;
@ -1693,17 +1711,23 @@ DEFUN(show_ipv6_ospf6_interface_ifname_prefix,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(show_ipv6_ospf6_interface_prefix, show_ipv6_ospf6_interface_prefix_cmd, DEFUN(show_ipv6_ospf6_interface_prefix,
"show ipv6 ospf6 [vrf <NAME|all>] interface prefix\ show_ipv6_ospf6_interface_prefix_cmd,
[<\ "show ipv6 ospf6 [vrf <NAME|all>] interface prefix "
detail\ "[<detail|<X:X::X:X|X:X::X:X/M> [<match|detail>]>] [json]",
|<X:X::X:X|X:X::X:X/M> [<match|detail>]\ SHOW_STR
>] [json]", IP6_STR
SHOW_STR IP6_STR OSPF6_STR VRF_CMD_HELP_STR OSPF6_STR
"All VRFs\n" INTERFACE_STR "Display connected prefixes to advertise\n" VRF_CMD_HELP_STR
"Display details of the prefixes\n" OSPF6_ROUTE_ADDRESS_STR "All VRFs\n"
OSPF6_ROUTE_PREFIX_STR OSPF6_ROUTE_MATCH_STR INTERFACE_STR
"Display details of the prefixes\n" JSON_STR) "Display connected prefixes to advertise\n"
"Display details of the prefixes\n"
OSPF6_ROUTE_ADDRESS_STR
OSPF6_ROUTE_PREFIX_STR
OSPF6_ROUTE_MATCH_STR
"Display details of the prefixes\n"
JSON_STR)
{ {
struct vrf *vrf = NULL; struct vrf *vrf = NULL;
int idx_prefix = 5; int idx_prefix = 5;
@ -1802,9 +1826,12 @@ void ospf6_interface_stop(struct ospf6_interface *oi)
} }
/* interface variable set command */ /* interface variable set command */
DEFUN(ipv6_ospf6_area, ipv6_ospf6_area_cmd, DEFUN (ipv6_ospf6_area,
ipv6_ospf6_area_cmd,
"ipv6 ospf6 area <A.B.C.D|(0-4294967295)>", "ipv6 ospf6 area <A.B.C.D|(0-4294967295)>",
IP6_STR OSPF6_STR "Specify the OSPF6 area ID\n" IP6_STR
OSPF6_STR
"Specify the OSPF6 area ID\n"
"OSPF6 area ID in IPv4 address notation\n" "OSPF6 area ID in IPv4 address notation\n"
"OSPF6 area ID in decimal notation\n") "OSPF6 area ID in decimal notation\n")
{ {
@ -1840,9 +1867,13 @@ DEFUN(ipv6_ospf6_area, ipv6_ospf6_area_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(no_ipv6_ospf6_area, no_ipv6_ospf6_area_cmd, DEFUN (no_ipv6_ospf6_area,
no_ipv6_ospf6_area_cmd,
"no ipv6 ospf6 area [<A.B.C.D|(0-4294967295)>]", "no ipv6 ospf6 area [<A.B.C.D|(0-4294967295)>]",
NO_STR IP6_STR OSPF6_STR "Specify the OSPF6 area ID\n" NO_STR
IP6_STR
OSPF6_STR
"Specify the OSPF6 area ID\n"
"OSPF6 area ID in IPv4 address notation\n" "OSPF6 area ID in IPv4 address notation\n"
"OSPF6 area ID in decimal notation\n") "OSPF6 area ID in decimal notation\n")
{ {
@ -1864,9 +1895,14 @@ DEFUN(no_ipv6_ospf6_area, no_ipv6_ospf6_area_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(ipv6_ospf6_ifmtu, ipv6_ospf6_ifmtu_cmd, "ipv6 ospf6 ifmtu (1-65535)", DEFUN (ipv6_ospf6_ifmtu,
IP6_STR OSPF6_STR "Interface MTU\n" ipv6_ospf6_ifmtu_cmd,
"OSPFv3 Interface MTU\n") "ipv6 ospf6 ifmtu (1-65535)",
IP6_STR
OSPF6_STR
"Interface MTU\n"
"OSPFv3 Interface MTU\n"
)
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
int idx_number = 3; int idx_number = 3;
@ -1915,10 +1951,15 @@ DEFUN(ipv6_ospf6_ifmtu, ipv6_ospf6_ifmtu_cmd, "ipv6 ospf6 ifmtu (1-65535)",
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(no_ipv6_ospf6_ifmtu, no_ipv6_ospf6_ifmtu_cmd, DEFUN (no_ipv6_ospf6_ifmtu,
no_ipv6_ospf6_ifmtu_cmd,
"no ipv6 ospf6 ifmtu [(1-65535)]", "no ipv6 ospf6 ifmtu [(1-65535)]",
NO_STR IP6_STR OSPF6_STR "Interface MTU\n" NO_STR
"OSPFv3 Interface MTU\n") IP6_STR
OSPF6_STR
"Interface MTU\n"
"OSPFv3 Interface MTU\n"
)
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
struct ospf6_interface *oi; struct ospf6_interface *oi;
@ -1956,8 +1997,12 @@ DEFUN(no_ipv6_ospf6_ifmtu, no_ipv6_ospf6_ifmtu_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(ipv6_ospf6_cost, ipv6_ospf6_cost_cmd, "ipv6 ospf6 cost (1-65535)", DEFUN (ipv6_ospf6_cost,
IP6_STR OSPF6_STR "Interface cost\n" ipv6_ospf6_cost_cmd,
"ipv6 ospf6 cost (1-65535)",
IP6_STR
OSPF6_STR
"Interface cost\n"
"Outgoing metric of this interface\n") "Outgoing metric of this interface\n")
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
@ -1989,9 +2034,13 @@ DEFUN(ipv6_ospf6_cost, ipv6_ospf6_cost_cmd, "ipv6 ospf6 cost (1-65535)",
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(no_ipv6_ospf6_cost, no_ipv6_ospf6_cost_cmd, DEFUN (no_ipv6_ospf6_cost,
no_ipv6_ospf6_cost_cmd,
"no ipv6 ospf6 cost [(1-65535)]", "no ipv6 ospf6 cost [(1-65535)]",
NO_STR IP6_STR OSPF6_STR "Calculate interface cost from bandwidth\n" NO_STR
IP6_STR
OSPF6_STR
"Calculate interface cost from bandwidth\n"
"Outgoing metric of this interface\n") "Outgoing metric of this interface\n")
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
@ -2010,7 +2059,8 @@ DEFUN(no_ipv6_ospf6_cost, no_ipv6_ospf6_cost_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(auto_cost_reference_bandwidth, auto_cost_reference_bandwidth_cmd, DEFUN (auto_cost_reference_bandwidth,
auto_cost_reference_bandwidth_cmd,
"auto-cost reference-bandwidth (1-4294967)", "auto-cost reference-bandwidth (1-4294967)",
"Calculate OSPF interface cost according to bandwidth\n" "Calculate OSPF interface cost according to bandwidth\n"
"Use reference bandwidth method to assign OSPF cost\n" "Use reference bandwidth method to assign OSPF cost\n"
@ -2041,9 +2091,11 @@ DEFUN(auto_cost_reference_bandwidth, auto_cost_reference_bandwidth_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(no_auto_cost_reference_bandwidth, no_auto_cost_reference_bandwidth_cmd, DEFUN (no_auto_cost_reference_bandwidth,
no_auto_cost_reference_bandwidth_cmd,
"no auto-cost reference-bandwidth [(1-4294967)]", "no auto-cost reference-bandwidth [(1-4294967)]",
NO_STR "Calculate OSPF interface cost according to bandwidth\n" NO_STR
"Calculate OSPF interface cost according to bandwidth\n"
"Use reference bandwidth method to assign OSPF cost\n" "Use reference bandwidth method to assign OSPF cost\n"
"The reference bandwidth in terms of Mbits per second\n") "The reference bandwidth in terms of Mbits per second\n")
{ {
@ -2064,7 +2116,8 @@ DEFUN(no_auto_cost_reference_bandwidth, no_auto_cost_reference_bandwidth_cmd,
} }
DEFUN(ospf6_write_multiplier, ospf6_write_multiplier_cmd, DEFUN (ospf6_write_multiplier,
ospf6_write_multiplier_cmd,
"write-multiplier (1-100)", "write-multiplier (1-100)",
"Write multiplier\n" "Write multiplier\n"
"Maximum number of interface serviced per write\n") "Maximum number of interface serviced per write\n")
@ -2082,9 +2135,11 @@ DEFUN(ospf6_write_multiplier, ospf6_write_multiplier_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(no_ospf6_write_multiplier, no_ospf6_write_multiplier_cmd, DEFUN (no_ospf6_write_multiplier,
no_ospf6_write_multiplier_cmd,
"no write-multiplier (1-100)", "no write-multiplier (1-100)",
NO_STR "Write multiplier\n" NO_STR
"Write multiplier\n"
"Maximum number of interface serviced per write\n") "Maximum number of interface serviced per write\n")
{ {
VTY_DECLVAR_CONTEXT(ospf6, o); VTY_DECLVAR_CONTEXT(ospf6, o);
@ -2093,9 +2148,13 @@ DEFUN(no_ospf6_write_multiplier, no_ospf6_write_multiplier_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(ipv6_ospf6_hellointerval, ipv6_ospf6_hellointerval_cmd, DEFUN (ipv6_ospf6_hellointerval,
ipv6_ospf6_hellointerval_cmd,
"ipv6 ospf6 hello-interval (1-65535)", "ipv6 ospf6 hello-interval (1-65535)",
IP6_STR OSPF6_STR "Time between HELLO packets\n" SECONDS_STR) IP6_STR
OSPF6_STR
"Time between HELLO packets\n"
SECONDS_STR)
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
int idx_number = 3; int idx_number = 3;
@ -2123,15 +2182,23 @@ DEFUN(ipv6_ospf6_hellointerval, ipv6_ospf6_hellointerval_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
ALIAS(ipv6_ospf6_hellointerval, no_ipv6_ospf6_hellointerval_cmd, ALIAS (ipv6_ospf6_hellointerval,
no_ipv6_ospf6_hellointerval_cmd,
"no ipv6 ospf6 hello-interval [(1-65535)]", "no ipv6 ospf6 hello-interval [(1-65535)]",
NO_STR IP6_STR OSPF6_STR "Time between HELLO packets\n" SECONDS_STR) NO_STR
IP6_STR
OSPF6_STR
"Time between HELLO packets\n"
SECONDS_STR)
/* interface variable set command */ /* interface variable set command */
DEFUN(ipv6_ospf6_deadinterval, ipv6_ospf6_deadinterval_cmd, DEFUN (ipv6_ospf6_deadinterval,
ipv6_ospf6_deadinterval_cmd,
"ipv6 ospf6 dead-interval (1-65535)", "ipv6 ospf6 dead-interval (1-65535)",
IP6_STR OSPF6_STR IP6_STR
"Interval time after which a neighbor is declared down\n" SECONDS_STR) OSPF6_STR
"Interval time after which a neighbor is declared down\n"
SECONDS_STR)
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
int idx_number = 3; int idx_number = 3;
@ -2149,14 +2216,21 @@ DEFUN(ipv6_ospf6_deadinterval, ipv6_ospf6_deadinterval_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
ALIAS(ipv6_ospf6_deadinterval, no_ipv6_ospf6_deadinterval_cmd, ALIAS (ipv6_ospf6_deadinterval,
no_ipv6_ospf6_deadinterval_cmd,
"no ipv6 ospf6 dead-interval [(1-65535)]", "no ipv6 ospf6 dead-interval [(1-65535)]",
NO_STR IP6_STR OSPF6_STR NO_STR
"Interval time after which a neighbor is declared down\n" SECONDS_STR) IP6_STR
OSPF6_STR
"Interval time after which a neighbor is declared down\n"
SECONDS_STR)
DEFPY(ipv6_ospf6_gr_hdelay, ipv6_ospf6_gr_hdelay_cmd, DEFPY(ipv6_ospf6_gr_hdelay,
ipv6_ospf6_gr_hdelay_cmd,
"ipv6 ospf6 graceful-restart hello-delay (1-1800)", "ipv6 ospf6 graceful-restart hello-delay (1-1800)",
IP6_STR OSPF6_STR "Graceful Restart parameters\n" IP6_STR
OSPF6_STR
"Graceful Restart parameters\n"
"Delay the sending of the first hello packets.\n" "Delay the sending of the first hello packets.\n"
"Delay in seconds\n") "Delay in seconds\n")
{ {
@ -2173,9 +2247,13 @@ DEFPY(ipv6_ospf6_gr_hdelay, ipv6_ospf6_gr_hdelay_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFPY(no_ipv6_ospf6_gr_hdelay, no_ipv6_ospf6_gr_hdelay_cmd, DEFPY(no_ipv6_ospf6_gr_hdelay,
no_ipv6_ospf6_gr_hdelay_cmd,
"no ipv6 ospf6 graceful-restart hello-delay [(1-1800)]", "no ipv6 ospf6 graceful-restart hello-delay [(1-1800)]",
NO_STR IP6_STR OSPF6_STR "Graceful Restart parameters\n" NO_STR
IP6_STR
OSPF6_STR
"Graceful Restart parameters\n"
"Delay the sending of the first hello packets.\n" "Delay the sending of the first hello packets.\n"
"Delay in seconds\n") "Delay in seconds\n")
{ {
@ -2194,9 +2272,13 @@ DEFPY(no_ipv6_ospf6_gr_hdelay, no_ipv6_ospf6_gr_hdelay_cmd,
} }
/* interface variable set command */ /* interface variable set command */
DEFUN(ipv6_ospf6_transmitdelay, ipv6_ospf6_transmitdelay_cmd, DEFUN (ipv6_ospf6_transmitdelay,
ipv6_ospf6_transmitdelay_cmd,
"ipv6 ospf6 transmit-delay (1-3600)", "ipv6 ospf6 transmit-delay (1-3600)",
IP6_STR OSPF6_STR "Link state transmit delay\n" SECONDS_STR) IP6_STR
OSPF6_STR
"Link state transmit delay\n"
SECONDS_STR)
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
int idx_number = 3; int idx_number = 3;
@ -2214,15 +2296,23 @@ DEFUN(ipv6_ospf6_transmitdelay, ipv6_ospf6_transmitdelay_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
ALIAS(ipv6_ospf6_transmitdelay, no_ipv6_ospf6_transmitdelay_cmd, ALIAS (ipv6_ospf6_transmitdelay,
no_ipv6_ospf6_transmitdelay_cmd,
"no ipv6 ospf6 transmit-delay [(1-3600)]", "no ipv6 ospf6 transmit-delay [(1-3600)]",
NO_STR IP6_STR OSPF6_STR "Link state transmit delay\n" SECONDS_STR) NO_STR
IP6_STR
OSPF6_STR
"Link state transmit delay\n"
SECONDS_STR)
/* interface variable set command */ /* interface variable set command */
DEFUN(ipv6_ospf6_retransmitinterval, ipv6_ospf6_retransmitinterval_cmd, DEFUN (ipv6_ospf6_retransmitinterval,
ipv6_ospf6_retransmitinterval_cmd,
"ipv6 ospf6 retransmit-interval (1-65535)", "ipv6 ospf6 retransmit-interval (1-65535)",
IP6_STR OSPF6_STR IP6_STR
"Time between retransmitting lost link state advertisements\n" SECONDS_STR) OSPF6_STR
"Time between retransmitting lost link state advertisements\n"
SECONDS_STR)
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
int idx_number = 3; int idx_number = 3;
@ -2240,15 +2330,22 @@ DEFUN(ipv6_ospf6_retransmitinterval, ipv6_ospf6_retransmitinterval_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
ALIAS(ipv6_ospf6_retransmitinterval, no_ipv6_ospf6_retransmitinterval_cmd, ALIAS (ipv6_ospf6_retransmitinterval,
no_ipv6_ospf6_retransmitinterval_cmd,
"no ipv6 ospf6 retransmit-interval [(1-65535)]", "no ipv6 ospf6 retransmit-interval [(1-65535)]",
NO_STR IP6_STR OSPF6_STR NO_STR
"Time between retransmitting lost link state advertisements\n" SECONDS_STR) IP6_STR
OSPF6_STR
"Time between retransmitting lost link state advertisements\n"
SECONDS_STR)
/* interface variable set command */ /* interface variable set command */
DEFUN(ipv6_ospf6_priority, ipv6_ospf6_priority_cmd, DEFUN (ipv6_ospf6_priority,
ipv6_ospf6_priority_cmd,
"ipv6 ospf6 priority (0-255)", "ipv6 ospf6 priority (0-255)",
IP6_STR OSPF6_STR "Router priority\n" IP6_STR
OSPF6_STR
"Router priority\n"
"Priority value\n") "Priority value\n")
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
@ -2275,14 +2372,21 @@ DEFUN(ipv6_ospf6_priority, ipv6_ospf6_priority_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
ALIAS(ipv6_ospf6_priority, no_ipv6_ospf6_priority_cmd, ALIAS (ipv6_ospf6_priority,
no_ipv6_ospf6_priority_cmd,
"no ipv6 ospf6 priority [(0-255)]", "no ipv6 ospf6 priority [(0-255)]",
NO_STR IP6_STR OSPF6_STR "Router priority\n" NO_STR
IP6_STR
OSPF6_STR
"Router priority\n"
"Priority value\n") "Priority value\n")
DEFUN(ipv6_ospf6_instance, ipv6_ospf6_instance_cmd, DEFUN (ipv6_ospf6_instance,
ipv6_ospf6_instance_cmd,
"ipv6 ospf6 instance-id (0-255)", "ipv6 ospf6 instance-id (0-255)",
IP6_STR OSPF6_STR "Instance ID for this interface\n" IP6_STR
OSPF6_STR
"Instance ID for this interface\n"
"Instance ID value\n") "Instance ID value\n")
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
@ -2301,14 +2405,22 @@ DEFUN(ipv6_ospf6_instance, ipv6_ospf6_instance_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
ALIAS(ipv6_ospf6_instance, no_ipv6_ospf6_instance_cmd, ALIAS (ipv6_ospf6_instance,
no_ipv6_ospf6_instance_cmd,
"no ipv6 ospf6 instance-id [(0-255)]", "no ipv6 ospf6 instance-id [(0-255)]",
NO_STR IP6_STR OSPF6_STR "Instance ID for this interface\n" NO_STR
IP6_STR
OSPF6_STR
"Instance ID for this interface\n"
"Instance ID value\n") "Instance ID value\n")
DEFUN(ipv6_ospf6_passive, ipv6_ospf6_passive_cmd, "ipv6 ospf6 passive", DEFUN (ipv6_ospf6_passive,
IP6_STR OSPF6_STR ipv6_ospf6_passive_cmd,
"Passive interface; no adjacency will be formed on this interface\n") "ipv6 ospf6 passive",
IP6_STR
OSPF6_STR
"Passive interface; no adjacency will be formed on this interface\n"
)
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
struct ospf6_interface *oi; struct ospf6_interface *oi;
@ -2334,9 +2446,14 @@ DEFUN(ipv6_ospf6_passive, ipv6_ospf6_passive_cmd, "ipv6 ospf6 passive",
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(no_ipv6_ospf6_passive, no_ipv6_ospf6_passive_cmd, "no ipv6 ospf6 passive", DEFUN (no_ipv6_ospf6_passive,
NO_STR IP6_STR OSPF6_STR no_ipv6_ospf6_passive_cmd,
"passive interface: No Adjacency will be formed on this I/F\n") "no ipv6 ospf6 passive",
NO_STR
IP6_STR
OSPF6_STR
"passive interface: No Adjacency will be formed on this I/F\n"
)
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
struct ospf6_interface *oi; struct ospf6_interface *oi;
@ -2359,8 +2476,13 @@ DEFUN(no_ipv6_ospf6_passive, no_ipv6_ospf6_passive_cmd, "no ipv6 ospf6 passive",
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(ipv6_ospf6_mtu_ignore, ipv6_ospf6_mtu_ignore_cmd, "ipv6 ospf6 mtu-ignore", DEFUN (ipv6_ospf6_mtu_ignore,
IP6_STR OSPF6_STR "Disable MTU mismatch detection on this interface\n") ipv6_ospf6_mtu_ignore_cmd,
"ipv6 ospf6 mtu-ignore",
IP6_STR
OSPF6_STR
"Disable MTU mismatch detection on this interface\n"
)
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
struct ospf6_interface *oi; struct ospf6_interface *oi;
@ -2376,10 +2498,14 @@ DEFUN(ipv6_ospf6_mtu_ignore, ipv6_ospf6_mtu_ignore_cmd, "ipv6 ospf6 mtu-ignore",
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(no_ipv6_ospf6_mtu_ignore, no_ipv6_ospf6_mtu_ignore_cmd, DEFUN (no_ipv6_ospf6_mtu_ignore,
no_ipv6_ospf6_mtu_ignore_cmd,
"no ipv6 ospf6 mtu-ignore", "no ipv6 ospf6 mtu-ignore",
NO_STR IP6_STR OSPF6_STR NO_STR
"Disable MTU mismatch detection on this interface\n") IP6_STR
OSPF6_STR
"Disable MTU mismatch detection on this interface\n"
)
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
struct ospf6_interface *oi; struct ospf6_interface *oi;
@ -2395,9 +2521,12 @@ DEFUN(no_ipv6_ospf6_mtu_ignore, no_ipv6_ospf6_mtu_ignore_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(ipv6_ospf6_advertise_prefix_list, ipv6_ospf6_advertise_prefix_list_cmd, DEFUN(ipv6_ospf6_advertise_prefix_list,
ipv6_ospf6_advertise_prefix_list_cmd,
"ipv6 ospf6 advertise prefix-list PREFIXLIST6_NAME", "ipv6 ospf6 advertise prefix-list PREFIXLIST6_NAME",
IP6_STR OSPF6_STR "Advertising options\n" IP6_STR
OSPF6_STR
"Advertising options\n"
"Filter prefix using prefix-list\n" "Filter prefix using prefix-list\n"
"Prefix list name\n") "Prefix list name\n")
{ {
@ -2432,7 +2561,10 @@ DEFUN(ipv6_ospf6_advertise_prefix_list, ipv6_ospf6_advertise_prefix_list_cmd,
DEFUN(no_ipv6_ospf6_advertise_prefix_list, DEFUN(no_ipv6_ospf6_advertise_prefix_list,
no_ipv6_ospf6_advertise_prefix_list_cmd, no_ipv6_ospf6_advertise_prefix_list_cmd,
"no ipv6 ospf6 advertise prefix-list [PREFIXLIST6_NAME]", "no ipv6 ospf6 advertise prefix-list [PREFIXLIST6_NAME]",
NO_STR IP6_STR OSPF6_STR "Advertising options\n" NO_STR
IP6_STR
OSPF6_STR
"Advertising options\n"
"Filter prefix using prefix-list\n" "Filter prefix using prefix-list\n"
"Prefix list name\n") "Prefix list name\n")
{ {
@ -2462,12 +2594,16 @@ DEFUN(no_ipv6_ospf6_advertise_prefix_list,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(ipv6_ospf6_network, ipv6_ospf6_network_cmd, DEFUN (ipv6_ospf6_network,
ipv6_ospf6_network_cmd,
"ipv6 ospf6 network <broadcast|point-to-point|point-to-multipoint>", "ipv6 ospf6 network <broadcast|point-to-point|point-to-multipoint>",
IP6_STR OSPF6_STR "Network type\n" IP6_STR
OSPF6_STR
"Network type\n"
"Specify OSPF6 broadcast network\n" "Specify OSPF6 broadcast network\n"
"Specify OSPF6 point-to-point network\n" "Specify OSPF6 point-to-point network\n"
"Specify OSPF6 point-to-multipoint network\n") "Specify OSPF6 point-to-multipoint network\n"
)
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
int idx_network = 3; int idx_network = 3;
@ -2506,9 +2642,13 @@ DEFUN(ipv6_ospf6_network, ipv6_ospf6_network_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(no_ipv6_ospf6_network, no_ipv6_ospf6_network_cmd, DEFUN (no_ipv6_ospf6_network,
no_ipv6_ospf6_network_cmd,
"no ipv6 ospf6 network [<broadcast|point-to-point>]", "no ipv6 ospf6 network [<broadcast|point-to-point>]",
NO_STR IP6_STR OSPF6_STR "Set default network type\n" NO_STR
IP6_STR
OSPF6_STR
"Set default network type\n"
"Specify OSPF6 broadcast network\n" "Specify OSPF6 broadcast network\n"
"Specify OSPF6 point-to-point network\n") "Specify OSPF6 point-to-point network\n")
{ {
@ -2537,9 +2677,12 @@ DEFUN(no_ipv6_ospf6_network, no_ipv6_ospf6_network_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFPY(ipv6_ospf6_p2xp_only_cfg_neigh, ipv6_ospf6_p2xp_only_cfg_neigh_cmd, DEFPY (ipv6_ospf6_p2xp_only_cfg_neigh,
ipv6_ospf6_p2xp_only_cfg_neigh_cmd,
"[no] ipv6 ospf6 p2p-p2mp config-neighbors-only", "[no] ipv6 ospf6 p2p-p2mp config-neighbors-only",
NO_STR IP6_STR OSPF6_STR NO_STR
IP6_STR
OSPF6_STR
"Point-to-point and Point-to-Multipoint parameters\n" "Point-to-point and Point-to-Multipoint parameters\n"
"Only form adjacencies with explicitly configured neighbors\n") "Only form adjacencies with explicitly configured neighbors\n")
{ {
@ -2561,9 +2704,12 @@ DEFPY(ipv6_ospf6_p2xp_only_cfg_neigh, ipv6_ospf6_p2xp_only_cfg_neigh_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFPY(ipv6_ospf6_p2xp_no_multicast_hello, ipv6_ospf6_p2xp_no_multicast_hello_cmd, DEFPY (ipv6_ospf6_p2xp_no_multicast_hello,
ipv6_ospf6_p2xp_no_multicast_hello_cmd,
"[no] ipv6 ospf6 p2p-p2mp disable-multicast-hello", "[no] ipv6 ospf6 p2p-p2mp disable-multicast-hello",
NO_STR IP6_STR OSPF6_STR NO_STR
IP6_STR
OSPF6_STR
"Point-to-point and Point-to-Multipoint parameters\n" "Point-to-point and Point-to-Multipoint parameters\n"
"Do not send multicast hellos\n") "Do not send multicast hellos\n")
{ {
@ -2585,9 +2731,12 @@ DEFPY(ipv6_ospf6_p2xp_no_multicast_hello, ipv6_ospf6_p2xp_no_multicast_hello_cmd
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFPY(ipv6_ospf6_p2xp_connected_pfx, ipv6_ospf6_p2xp_connected_pfx_cmd, DEFPY (ipv6_ospf6_p2xp_connected_pfx,
ipv6_ospf6_p2xp_connected_pfx_cmd,
"[no] ipv6 ospf6 p2p-p2mp connected-prefixes <include$incl|exclude$excl>", "[no] ipv6 ospf6 p2p-p2mp connected-prefixes <include$incl|exclude$excl>",
NO_STR IP6_STR OSPF6_STR NO_STR
IP6_STR
OSPF6_STR
"Point-to-point and Point-to-Multipoint parameters\n" "Point-to-point and Point-to-Multipoint parameters\n"
"Adjust handling of directly connected prefixes\n" "Adjust handling of directly connected prefixes\n"
"Advertise prefixes and own /128 (default for PtP)\n" "Advertise prefixes and own /128 (default for PtP)\n"
@ -2619,9 +2768,12 @@ DEFPY(ipv6_ospf6_p2xp_connected_pfx, ipv6_ospf6_p2xp_connected_pfx_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
ALIAS(ipv6_ospf6_p2xp_connected_pfx, no_ipv6_ospf6_p2xp_connected_pfx_cmd, ALIAS (ipv6_ospf6_p2xp_connected_pfx,
no_ipv6_ospf6_p2xp_connected_pfx_cmd,
"no ipv6 ospf6 p2p-p2mp connected-prefixes", "no ipv6 ospf6 p2p-p2mp connected-prefixes",
NO_STR IP6_STR OSPF6_STR NO_STR
IP6_STR
OSPF6_STR
"Point-to-point and Point-to-Multipoint parameters\n" "Point-to-point and Point-to-Multipoint parameters\n"
"Adjust handling of directly connected prefixes\n") "Adjust handling of directly connected prefixes\n")
@ -2873,9 +3025,16 @@ void ospf6_interface_clear(struct interface *ifp)
} }
/* Clear interface */ /* Clear interface */
DEFUN(clear_ipv6_ospf6_interface, clear_ipv6_ospf6_interface_cmd, DEFUN (clear_ipv6_ospf6_interface,
clear_ipv6_ospf6_interface_cmd,
"clear ipv6 ospf6 [vrf NAME] interface [IFNAME]", "clear ipv6 ospf6 [vrf NAME] interface [IFNAME]",
CLEAR_STR IP6_STR OSPF6_STR VRF_CMD_HELP_STR INTERFACE_STR IFNAME_STR) CLEAR_STR
IP6_STR
OSPF6_STR
VRF_CMD_HELP_STR
INTERFACE_STR
IFNAME_STR
)
{ {
struct vrf *vrf; struct vrf *vrf;
int idx_vrf = 3; int idx_vrf = 3;
@ -2916,16 +3075,26 @@ void install_element_ospf6_clear_interface(void)
install_element(ENABLE_NODE, &clear_ipv6_ospf6_interface_cmd); install_element(ENABLE_NODE, &clear_ipv6_ospf6_interface_cmd);
} }
DEFUN(debug_ospf6_interface, debug_ospf6_interface_cmd, "debug ospf6 interface", DEFUN (debug_ospf6_interface,
DEBUG_STR OSPF6_STR "Debug OSPFv3 Interface\n") debug_ospf6_interface_cmd,
"debug ospf6 interface",
DEBUG_STR
OSPF6_STR
"Debug OSPFv3 Interface\n"
)
{ {
OSPF6_DEBUG_INTERFACE_ON(); OSPF6_DEBUG_INTERFACE_ON();
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(no_debug_ospf6_interface, no_debug_ospf6_interface_cmd, DEFUN (no_debug_ospf6_interface,
no_debug_ospf6_interface_cmd,
"no debug ospf6 interface", "no debug ospf6 interface",
NO_STR DEBUG_STR OSPF6_STR "Debug OSPFv3 Interface\n") NO_STR
DEBUG_STR
OSPF6_STR
"Debug OSPFv3 Interface\n"
)
{ {
OSPF6_DEBUG_INTERFACE_OFF(); OSPF6_DEBUG_INTERFACE_OFF();
return CMD_SUCCESS; return CMD_SUCCESS;
@ -2962,7 +3131,9 @@ void ospf6_auth_write_config(struct vty *vty, struct ospf6_auth_data *at_data)
DEFUN(ipv6_ospf6_intf_auth_trailer_keychain, DEFUN(ipv6_ospf6_intf_auth_trailer_keychain,
ipv6_ospf6_intf_auth_trailer_keychain_cmd, ipv6_ospf6_intf_auth_trailer_keychain_cmd,
"ipv6 ospf6 authentication keychain KEYCHAIN_NAME", "ipv6 ospf6 authentication keychain KEYCHAIN_NAME",
IP6_STR OSPF6_STR "Enable authentication on this interface\n" IP6_STR
OSPF6_STR
"Enable authentication on this interface\n"
"Keychain\n" "Keychain\n"
"Keychain name\n") "Keychain name\n")
{ {
@ -2994,7 +3165,10 @@ DEFUN(ipv6_ospf6_intf_auth_trailer_keychain,
DEFUN(no_ipv6_ospf6_intf_auth_trailer_keychain, DEFUN(no_ipv6_ospf6_intf_auth_trailer_keychain,
no_ipv6_ospf6_intf_auth_trailer_keychain_cmd, no_ipv6_ospf6_intf_auth_trailer_keychain_cmd,
"no ipv6 ospf6 authentication keychain [KEYCHAIN_NAME]", "no ipv6 ospf6 authentication keychain [KEYCHAIN_NAME]",
NO_STR IP6_STR OSPF6_STR "Enable authentication on this interface\n" NO_STR
IP6_STR
OSPF6_STR
"Enable authentication on this interface\n"
"Keychain\n" "Keychain\n"
"Keychain name\n") "Keychain name\n")
{ {
@ -3018,11 +3192,14 @@ DEFUN(no_ipv6_ospf6_intf_auth_trailer_keychain,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(ipv6_ospf6_intf_auth_trailer_key, ipv6_ospf6_intf_auth_trailer_key_cmd, DEFUN(ipv6_ospf6_intf_auth_trailer_key,
ipv6_ospf6_intf_auth_trailer_key_cmd,
"ipv6 ospf6 authentication key-id (1-65535) hash-algo " "ipv6 ospf6 authentication key-id (1-65535) hash-algo "
"<md5|hmac-sha-1|hmac-sha-256|hmac-sha-384|hmac-sha-512> " "<md5|hmac-sha-1|hmac-sha-256|hmac-sha-384|hmac-sha-512> "
"key WORD", "key WORD",
IP6_STR OSPF6_STR "Authentication\n" IP6_STR
OSPF6_STR
"Authentication\n"
"Key ID\n" "Key ID\n"
"Key ID value\n" "Key ID value\n"
"Cryptographic-algorithm\n" "Cryptographic-algorithm\n"
@ -3077,7 +3254,10 @@ DEFUN(no_ipv6_ospf6_intf_auth_trailer_key,
"no ipv6 ospf6 authentication key-id [(1-65535) hash-algo " "no ipv6 ospf6 authentication key-id [(1-65535) hash-algo "
"<md5|hmac-sha-1|hmac-sha-256|hmac-sha-384|hmac-sha-512> " "<md5|hmac-sha-1|hmac-sha-256|hmac-sha-384|hmac-sha-512> "
"key WORD]", "key WORD]",
NO_STR IP6_STR OSPF6_STR "Authentication\n" NO_STR
IP6_STR
OSPF6_STR
"Authentication\n"
"Key ID\n" "Key ID\n"
"Key ID value\n" "Key ID value\n"
"Cryptographic-algorithm\n" "Cryptographic-algorithm\n"

View file

@ -704,9 +704,13 @@ static void p2xp_neigh_refresh(struct ospf6_neighbor *on, uint32_t prev_cost)
#include "ospf6d/ospf6_neighbor_clippy.c" #include "ospf6d/ospf6_neighbor_clippy.c"
#endif #endif
DEFPY(ipv6_ospf6_p2xp_neigh, ipv6_ospf6_p2xp_neigh_cmd, DEFPY (ipv6_ospf6_p2xp_neigh,
ipv6_ospf6_p2xp_neigh_cmd,
"[no] ipv6 ospf6 neighbor X:X::X:X", "[no] ipv6 ospf6 neighbor X:X::X:X",
NO_STR IP6_STR OSPF6_STR "Configure static neighbor\n" NO_STR
IP6_STR
OSPF6_STR
"Configure static neighbor\n"
"Neighbor link-local address\n") "Neighbor link-local address\n")
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
@ -745,9 +749,13 @@ DEFPY(ipv6_ospf6_p2xp_neigh, ipv6_ospf6_p2xp_neigh_cmd,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFPY(ipv6_ospf6_p2xp_neigh_cost, ipv6_ospf6_p2xp_neigh_cost_cmd, DEFPY (ipv6_ospf6_p2xp_neigh_cost,
ipv6_ospf6_p2xp_neigh_cost_cmd,
"[no] ipv6 ospf6 neighbor X:X::X:X cost (1-65535)", "[no] ipv6 ospf6 neighbor X:X::X:X cost (1-65535)",
NO_STR IP6_STR OSPF6_STR "Configure static neighbor\n" NO_STR
IP6_STR
OSPF6_STR
"Configure static neighbor\n"
"Neighbor link-local address\n" "Neighbor link-local address\n"
"Outgoing metric for this neighbor\n" "Outgoing metric for this neighbor\n"
"Outgoing metric for this neighbor\n") "Outgoing metric for this neighbor\n")
@ -821,10 +829,13 @@ static void p2xp_unicast_hello_send(struct event *event)
ospf6_hello_send_addr(oi, &p2xp_cfg->addr); ospf6_hello_send_addr(oi, &p2xp_cfg->addr);
} }
DEFPY(ipv6_ospf6_p2xp_neigh_poll_interval, DEFPY (ipv6_ospf6_p2xp_neigh_poll_interval,
ipv6_ospf6_p2xp_neigh_poll_interval_cmd, ipv6_ospf6_p2xp_neigh_poll_interval_cmd,
"[no] ipv6 ospf6 neighbor X:X::X:X poll-interval (1-65535)", "[no] ipv6 ospf6 neighbor X:X::X:X poll-interval (1-65535)",
NO_STR IP6_STR OSPF6_STR "Configure static neighbor\n" NO_STR
IP6_STR
OSPF6_STR
"Configure static neighbor\n"
"Neighbor link-local address\n" "Neighbor link-local address\n"
"Send unicast hellos to neighbor when down\n" "Send unicast hellos to neighbor when down\n"
"Unicast hello interval when down (seconds)\n") "Unicast hello interval when down (seconds)\n")
@ -1340,13 +1351,18 @@ static void ospf6_neighbor_show_detail_common(struct vty *vty,
} }
} }
DEFUN(show_ipv6_ospf6_neighbor, show_ipv6_ospf6_neighbor_cmd, DEFUN(show_ipv6_ospf6_neighbor,
show_ipv6_ospf6_neighbor_cmd,
"show ipv6 ospf6 [vrf <NAME|all>] neighbor [<detail|drchoice>] [json]", "show ipv6 ospf6 [vrf <NAME|all>] neighbor [<detail|drchoice>] [json]",
SHOW_STR IP6_STR OSPF6_STR VRF_CMD_HELP_STR SHOW_STR
IP6_STR
OSPF6_STR
VRF_CMD_HELP_STR
"All VRFs\n" "All VRFs\n"
"Neighbor list\n" "Neighbor list\n"
"Display details\n" "Display details\n"
"Display DR choices\n" JSON_STR) "Display DR choices\n"
JSON_STR)
{ {
struct ospf6 *ospf6; struct ospf6 *ospf6;
struct listnode *node; struct listnode *node;
@ -1415,12 +1431,17 @@ static int ospf6_neighbor_show_common(struct vty *vty, int argc,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN(show_ipv6_ospf6_neighbor_one, show_ipv6_ospf6_neighbor_one_cmd, DEFUN(show_ipv6_ospf6_neighbor_one,
show_ipv6_ospf6_neighbor_one_cmd,
"show ipv6 ospf6 [vrf <NAME|all>] neighbor A.B.C.D [json]", "show ipv6 ospf6 [vrf <NAME|all>] neighbor A.B.C.D [json]",
SHOW_STR IP6_STR OSPF6_STR VRF_CMD_HELP_STR SHOW_STR
IP6_STR
OSPF6_STR
VRF_CMD_HELP_STR
"All VRFs\n" "All VRFs\n"
"Neighbor list\n" "Neighbor list\n"
"Specify Router-ID as IPv4 address notation\n" JSON_STR) "Specify Router-ID as IPv4 address notation\n"
JSON_STR)
{ {
int idx_ipv4 = 4; int idx_ipv4 = 4;
struct ospf6 *ospf6; struct ospf6 *ospf6;
@ -1460,9 +1481,12 @@ void ospf6_neighbor_init(void)
&ipv6_ospf6_p2xp_neigh_poll_interval_cmd); &ipv6_ospf6_p2xp_neigh_poll_interval_cmd);
} }
DEFUN(debug_ospf6_neighbor, debug_ospf6_neighbor_cmd, DEFUN (debug_ospf6_neighbor,
debug_ospf6_neighbor_cmd,
"debug ospf6 neighbor [<state|event>]", "debug ospf6 neighbor [<state|event>]",
DEBUG_STR OSPF6_STR "Debug OSPFv3 Neighbor\n" DEBUG_STR
OSPF6_STR
"Debug OSPFv3 Neighbor\n"
"Debug OSPFv3 Neighbor State Change\n" "Debug OSPFv3 Neighbor State Change\n"
"Debug OSPFv3 Neighbor Event\n") "Debug OSPFv3 Neighbor Event\n")
{ {
@ -1482,9 +1506,13 @@ DEFUN(debug_ospf6_neighbor, debug_ospf6_neighbor_cmd,
} }
DEFUN(no_debug_ospf6_neighbor, no_debug_ospf6_neighbor_cmd, DEFUN (no_debug_ospf6_neighbor,
no_debug_ospf6_neighbor_cmd,
"no debug ospf6 neighbor [<state|event>]", "no debug ospf6 neighbor [<state|event>]",
NO_STR DEBUG_STR OSPF6_STR "Debug OSPFv3 Neighbor\n" NO_STR
DEBUG_STR
OSPF6_STR
"Debug OSPFv3 Neighbor\n"
"Debug OSPFv3 Neighbor State Change\n" "Debug OSPFv3 Neighbor State Change\n"
"Debug OSPFv3 Neighbor Event\n") "Debug OSPFv3 Neighbor Event\n")
{ {
@ -1504,8 +1532,12 @@ DEFUN(no_debug_ospf6_neighbor, no_debug_ospf6_neighbor_cmd,
} }
DEFUN(no_debug_ospf6, no_debug_ospf6_cmd, "no debug ospf6", DEFUN (no_debug_ospf6,
NO_STR DEBUG_STR OSPF6_STR) no_debug_ospf6_cmd,
"no debug ospf6",
NO_STR
DEBUG_STR
OSPF6_STR)
{ {
unsigned int i; unsigned int i;