summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-02-17 14:18:22 +0100
committerGitHub <noreply@github.com>2023-02-17 14:18:22 +0100
commita15b0b10240041d6f7a624020d2934fdf5a0f271 (patch)
treec6bb3fe3d21dff61f50b31299a4c979d1db43c35 /lib
parentMerge pull request #12824 from donaldsharp/coverity_evpn (diff)
parentbgpd: Add BGP Software Version Capability (diff)
downloadfrr-a15b0b10240041d6f7a624020d2934fdf5a0f271.tar.xz
frr-a15b0b10240041d6f7a624020d2934fdf5a0f271.zip
Merge pull request #12727 from opensourcerouting/feature/bgp_software_version_capability
bgpd: Software Version Capability
Diffstat (limited to 'lib')
-rw-r--r--lib/command.c5
-rw-r--r--lib/command.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c
index 4e8194bbc..c8f150edf 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -127,6 +127,11 @@ bool cmd_allow_reserved_ranges_get(void)
return host.allow_reserved_ranges;
}
+const char *cmd_software_version_get(void)
+{
+ return FRR_FULL_NAME "/" FRR_VERSION;
+}
+
static int root_on_exit(struct vty *vty);
/* Standard command node structures. */
diff --git a/lib/command.h b/lib/command.h
index 5aaa6d6cd..28bb96e0e 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -606,6 +606,7 @@ extern const char *cmd_domainname_get(void);
extern const char *cmd_system_get(void);
extern const char *cmd_release_get(void);
extern const char *cmd_version_get(void);
+extern const char *cmd_software_version_get(void);
extern bool cmd_allow_reserved_ranges_get(void);
/* NOT safe for general use; call this only if DEV_BUILD! */