summaryrefslogtreecommitdiff
path: root/nest/cmds.c
diff options
context:
space:
mode:
authorVincent Bernat <vincent@bernat.ch>2021-02-10 16:53:57 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2021-02-10 16:53:57 +0100
commit714238716ef36f1dfc5721055e2ec4affd42ebfa (patch)
tree50564bd78326443e2376f2095251b6b1c0871afc /nest/cmds.c
parent00b85905b9f5081eb2fce0ed79542085278e9f42 (diff)
BGP: Add support for BGP hostname capability
This is an implementation of draft-walton-bgp-hostname-capability-02. It is implemented since quite some time for FRR and in datacenter, this gives a nice output to avoid using IP addresses. It is disabled by default. The hostname is retrieved from uname(2) and can be overriden with "hostname" option. The domain name is never set nor displayed. Minor changes by committer.
Diffstat (limited to 'nest/cmds.c')
-rw-r--r--nest/cmds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/cmds.c b/nest/cmds.c
index da4015cf..18f39eb5 100644
--- a/nest/cmds.c
+++ b/nest/cmds.c
@@ -27,6 +27,7 @@ cmd_show_status(void)
cli_msg(-1000, "BIRD " BIRD_VERSION);
tm_format_time(tim, &config->tf_base, current_time());
cli_msg(-1011, "Router ID is %R", config->router_id);
+ cli_msg(-1011, "Hostname is %s", config->hostname);
cli_msg(-1011, "Current server time is %s", tim);
tm_format_time(tim, &config->tf_base, boot_time);
cli_msg(-1011, "Last reboot on %s", tim);