summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_lsa.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2021-01-21 10:00:36 -0500
committerGitHub <noreply@github.com>2021-01-21 10:00:36 -0500
commit52624d79452c3f6688f3e2a7f9f4aa667d178c7c (patch)
treecbb2168868cc044dfec9f0aa35b1a71ed2d8bfb6 /ospf6d/ospf6_lsa.h
parent8cf7ab7539c14e99b710f6089cc9a9d9af742d47 (diff)
parente4bacbaac48fc2cdd5f7f09a9610a468d5892e3d (diff)
Merge pull request #7668 from ranjanyash54/dev_6
ospf6d: Json support added for command "show ipv6 ospf6 database [json]"
Diffstat (limited to 'ospf6d/ospf6_lsa.h')
-rw-r--r--ospf6d/ospf6_lsa.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/ospf6d/ospf6_lsa.h b/ospf6d/ospf6_lsa.h
index 814e276796..7fa9c5fe40 100644
--- a/ospf6d/ospf6_lsa.h
+++ b/ospf6d/ospf6_lsa.h
@@ -21,6 +21,7 @@
#ifndef OSPF6_LSA_H
#define OSPF6_LSA_H
#include "ospf6_top.h"
+#include "lib/json.h"
/* Debug option */
#define OSPF6_LSA_DEBUG 0x01
@@ -141,9 +142,10 @@ struct ospf6_lsa_handler {
uint16_t lh_type; /* host byte order */
const char *lh_name;
const char *lh_short_name;
- int (*lh_show)(struct vty *, struct ospf6_lsa *);
- char *(*lh_get_prefix_str)(struct ospf6_lsa *, char *buf,
- int buflen, int pos);
+ int (*lh_show)(struct vty *, struct ospf6_lsa *, json_object *json_obj,
+ bool use_json);
+ char *(*lh_get_prefix_str)(struct ospf6_lsa *, char *buf, int buflen,
+ int pos);
uint8_t lh_debug;
};
@@ -206,10 +208,14 @@ extern char *ospf6_lsa_printbuf(struct ospf6_lsa *lsa, char *buf, int size);
extern void ospf6_lsa_header_print_raw(struct ospf6_lsa_header *header);
extern void ospf6_lsa_header_print(struct ospf6_lsa *lsa);
extern void ospf6_lsa_show_summary_header(struct vty *vty);
-extern void ospf6_lsa_show_summary(struct vty *vty, struct ospf6_lsa *lsa);
-extern void ospf6_lsa_show_dump(struct vty *vty, struct ospf6_lsa *lsa);
-extern void ospf6_lsa_show_internal(struct vty *vty, struct ospf6_lsa *lsa);
-extern void ospf6_lsa_show(struct vty *vty, struct ospf6_lsa *lsa);
+extern void ospf6_lsa_show_summary(struct vty *vty, struct ospf6_lsa *lsa,
+ json_object *json, bool use_json);
+extern void ospf6_lsa_show_dump(struct vty *vty, struct ospf6_lsa *lsa,
+ json_object *json, bool use_json);
+extern void ospf6_lsa_show_internal(struct vty *vty, struct ospf6_lsa *lsa,
+ json_object *json, bool use_json);
+extern void ospf6_lsa_show(struct vty *vty, struct ospf6_lsa *lsa,
+ json_object *json, bool use_json);
extern struct ospf6_lsa *ospf6_lsa_create(struct ospf6_lsa_header *header);
extern struct ospf6_lsa *