summaryrefslogtreecommitdiff
path: root/ospf6d
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-11-03 08:54:09 -0400
committerGitHub <noreply@github.com>2022-11-03 08:54:09 -0400
commitd7cde18c63c4eef83e12f562aa025cf1dbeaee05 (patch)
tree591e68540bb026cfe9f212a69c150bfcfa8bbf36 /ospf6d
parent70f29b9f7bf157cd439518cba0ecd52efcf22429 (diff)
parent6c7bc49428b594e0747af9813b4c510bd2817f4e (diff)
Merge pull request #12196 from opensourcerouting/xref-vtysh
*: rewrite `extract.pl` using `xref` infra
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_area.c2
-rw-r--r--ospf6d/ospf6_asbr.c18
-rw-r--r--ospf6d/ospf6_gr.c2
-rw-r--r--ospf6d/ospf6_gr_helper.c2
-rw-r--r--ospf6d/ospf6_lsa.c2
-rw-r--r--ospf6d/ospf6_nssa.c2
-rw-r--r--ospf6d/ospf6_route.c2
-rw-r--r--ospf6d/ospf6_top.c2
-rw-r--r--ospf6d/subdir.am21
9 files changed, 8 insertions, 45 deletions
diff --git a/ospf6d/ospf6_area.c b/ospf6d/ospf6_area.c
index 78b2ffbcf3..6a4236e717 100644
--- a/ospf6d/ospf6_area.c
+++ b/ospf6d/ospf6_area.c
@@ -49,9 +49,7 @@
#include "ospf6d.h"
#include "lib/json.h"
#include "ospf6_nssa.h"
-#ifndef VTYSH_EXTRACT_PL
#include "ospf6d/ospf6_area_clippy.c"
-#endif
DEFINE_MTYPE_STATIC(OSPF6D, OSPF6_AREA, "OSPF6 area");
DEFINE_MTYPE_STATIC(OSPF6D, OSPF6_PLISTNAME, "Prefix list name");
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c
index 924c2d6c5b..07061b6f57 100644
--- a/ospf6d/ospf6_asbr.c
+++ b/ospf6d/ospf6_asbr.c
@@ -65,9 +65,7 @@ static void ospf6_asbr_redistribute_set(struct ospf6 *ospf6, int type);
static void ospf6_asbr_redistribute_unset(struct ospf6 *ospf6,
struct ospf6_redist *red, int type);
-#ifndef VTYSH_EXTRACT_PL
#include "ospf6d/ospf6_asbr_clippy.c"
-#endif
unsigned char conf_debug_ospf6_asbr = 0;
@@ -2206,10 +2204,10 @@ static const struct route_map_rule_cmd ospf6_routemap_rule_set_tag_cmd = {
/* add "set metric-type" */
DEFUN_YANG (ospf6_routemap_set_metric_type, ospf6_routemap_set_metric_type_cmd,
"set metric-type <type-1|type-2>",
- "Set value\n"
- "Type of metric\n"
- "OSPF6 external type 1 metric\n"
- "OSPF6 external type 2 metric\n")
+ SET_STR
+ "Type of metric for destination routing protocol\n"
+ "OSPF[6] external type 1 metric\n"
+ "OSPF[6] external type 2 metric\n")
{
char *ext = argv[2]->text;
@@ -2228,10 +2226,10 @@ DEFUN_YANG (ospf6_routemap_set_metric_type, ospf6_routemap_set_metric_type_cmd,
DEFUN_YANG (ospf6_routemap_no_set_metric_type, ospf6_routemap_no_set_metric_type_cmd,
"no set metric-type [<type-1|type-2>]",
NO_STR
- "Set value\n"
- "Type of metric\n"
- "OSPF6 external type 1 metric\n"
- "OSPF6 external type 2 metric\n")
+ SET_STR
+ "Type of metric for destination routing protocol\n"
+ "OSPF[6] external type 1 metric\n"
+ "OSPF[6] external type 2 metric\n")
{
const char *xpath =
"./set-action[action='frr-ospf-route-map:metric-type']";
diff --git a/ospf6d/ospf6_gr.c b/ospf6d/ospf6_gr.c
index d7de66c663..1f7fefa048 100644
--- a/ospf6d/ospf6_gr.c
+++ b/ospf6d/ospf6_gr.c
@@ -42,9 +42,7 @@
#include "ospf6d/ospf6_intra.h"
#include "ospf6d/ospf6_spf.h"
#include "ospf6d/ospf6_gr.h"
-#ifndef VTYSH_EXTRACT_PL
#include "ospf6d/ospf6_gr_clippy.c"
-#endif
static void ospf6_gr_nvm_delete(struct ospf6 *ospf6);
diff --git a/ospf6d/ospf6_gr_helper.c b/ospf6d/ospf6_gr_helper.c
index f352d35270..771a710240 100644
--- a/ospf6d/ospf6_gr_helper.c
+++ b/ospf6d/ospf6_gr_helper.c
@@ -49,9 +49,7 @@
#include "ospf6d.h"
#include "ospf6_gr.h"
#include "lib/json.h"
-#ifndef VTYSH_EXTRACT_PL
#include "ospf6d/ospf6_gr_helper_clippy.c"
-#endif
DEFINE_MTYPE_STATIC(OSPF6D, OSPF6_GR_HELPER, "OSPF6 Graceful restart helper");
diff --git a/ospf6d/ospf6_lsa.c b/ospf6d/ospf6_lsa.c
index 779076f387..2792820a54 100644
--- a/ospf6d/ospf6_lsa.c
+++ b/ospf6d/ospf6_lsa.c
@@ -46,9 +46,7 @@
#include "ospf6_flood.h"
#include "ospf6d.h"
-#ifndef VTYSH_EXTRACT_PL
#include "ospf6d/ospf6_lsa_clippy.c"
-#endif
DEFINE_MTYPE_STATIC(OSPF6D, OSPF6_LSA, "OSPF6 LSA");
DEFINE_MTYPE_STATIC(OSPF6D, OSPF6_LSA_HEADER, "OSPF6 LSA header");
diff --git a/ospf6d/ospf6_nssa.c b/ospf6d/ospf6_nssa.c
index b1bff69f06..f35c9df4a5 100644
--- a/ospf6d/ospf6_nssa.c
+++ b/ospf6d/ospf6_nssa.c
@@ -49,9 +49,7 @@
#include "ospf6_asbr.h"
#include "ospf6d.h"
#include "ospf6_nssa.h"
-#ifndef VTYSH_EXTRACT_PL
#include "ospf6d/ospf6_nssa_clippy.c"
-#endif
DEFINE_MTYPE_STATIC(OSPF6D, OSPF6_LSA, "OSPF6 LSA");
unsigned char config_debug_ospf6_nssa = 0;
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c
index fab0479d42..db94b85b1b 100644
--- a/ospf6d/ospf6_route.c
+++ b/ospf6d/ospf6_route.c
@@ -37,9 +37,7 @@
#include "ospf6_interface.h"
#include "ospf6d.h"
#include "ospf6_zebra.h"
-#ifndef VTYSH_EXTRACT_PL
#include "ospf6d/ospf6_route_clippy.c"
-#endif
DEFINE_MTYPE_STATIC(OSPF6D, OSPF6_ROUTE, "OSPF6 route");
DEFINE_MTYPE_STATIC(OSPF6D, OSPF6_ROUTE_TABLE, "OSPF6 route table");
diff --git a/ospf6d/ospf6_top.c b/ospf6d/ospf6_top.c
index d48e85cedb..eb89a14cd3 100644
--- a/ospf6d/ospf6_top.c
+++ b/ospf6d/ospf6_top.c
@@ -65,9 +65,7 @@ FRR_CFG_DEFAULT_BOOL(OSPF6_LOG_ADJACENCY_CHANGES,
{ .val_bool = false },
);
-#ifndef VTYSH_EXTRACT_PL
#include "ospf6d/ospf6_top_clippy.c"
-#endif
/* global ospf6d variable */
static struct ospf6_master ospf6_master;
diff --git a/ospf6d/subdir.am b/ospf6d/subdir.am
index cf863ff523..3dff03956c 100644
--- a/ospf6d/subdir.am
+++ b/ospf6d/subdir.am
@@ -5,27 +5,6 @@
if OSPF6D
noinst_LIBRARIES += ospf6d/libospf6.a
sbin_PROGRAMS += ospf6d/ospf6d
-vtysh_scan += \
- ospf6d/ospf6_nssa.c \
- ospf6d/ospf6_abr.c \
- ospf6d/ospf6_asbr.c \
- ospf6d/ospf6_area.c \
- ospf6d/ospf6_bfd.c \
- ospf6d/ospf6_flood.c \
- ospf6d/ospf6_gr.c \
- ospf6d/ospf6_gr_helper.c \
- ospf6d/ospf6_interface.c \
- ospf6d/ospf6_intra.c \
- ospf6d/ospf6_lsa.c \
- ospf6d/ospf6_message.c \
- ospf6d/ospf6_neighbor.c \
- ospf6d/ospf6_route.c \
- ospf6d/ospf6_spf.c \
- ospf6d/ospf6_top.c \
- ospf6d/ospf6_zebra.c \
- ospf6d/ospf6d.c \
- ospf6d/ospf6_auth_trailer.c \
- # end
vtysh_daemons += ospf6d
if SNMP
module_LTLIBRARIES += ospf6d/ospf6d_snmp.la