diff options
| author | Daniel Walton <dwalton@cumulusnetworks.com> | 2015-09-10 20:10:16 -0700 | 
|---|---|---|
| committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2015-09-10 20:10:16 -0700 | 
| commit | 04b6bdc0ee6275442464edec1d14b3f4d3eaa246 (patch) | |
| tree | 402996c2ef60c5a4ed2f03a0a8e63d3ec7c8c154 /bgpd/bgp_open.h | |
| parent | 404504b1254c15b5caccd8648b2d62e72d9d4ad1 (diff) | |
bgpd: Exchange hostname capability and display hostnames in output
This patch adds a hostname capability. The node's hostname and
domainname are exchanged in the new capability and used in show command
outputs based on a knob enabled by the user. The hostname and domainname
can be a maximum of 64 chars long, each.
Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
Reviewed-by:   Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by:   Vivek Venkataraman <vivek@cumulusnetworks.com>
Ticket: CM-5660
Reviewed By: CCR-2563
Testing Done:
Diffstat (limited to 'bgpd/bgp_open.h')
| -rw-r--r-- | bgpd/bgp_open.h | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_open.h b/bgpd/bgp_open.h index f47d04015e..bc49de54ff 100644 --- a/bgpd/bgp_open.h +++ b/bgpd/bgp_open.h @@ -75,10 +75,12 @@ struct capability_gr  #define CAPABILITY_CODE_DYNAMIC_OLD    66 /* Dynamic Capability, deprecated since 2003 */  #define CAPABILITY_CODE_DYNAMIC        67 /* Dynamic Capability */  #define CAPABILITY_CODE_ADDPATH        69 /* Addpath Capability */ +#define CAPABILITY_CODE_FQDN           73 /* Advertise hostname capabilty */  #define CAPABILITY_CODE_ENHE            5 /* Extended Next Hop Encoding */  #define CAPABILITY_CODE_REFRESH_OLD   128 /* Route Refresh Capability(cisco) */  #define CAPABILITY_CODE_ORF_OLD       130 /* Cooperative Route Filtering Capability(cisco) */ +  /* Capability Length */  #define CAPABILITY_CODE_MP_LEN          4  #define CAPABILITY_CODE_REFRESH_LEN     0 @@ -87,6 +89,7 @@ struct capability_gr  #define CAPABILITY_CODE_AS4_LEN         4  #define CAPABILITY_CODE_ADDPATH_LEN     4  #define CAPABILITY_CODE_ENHE_LEN        6 /* NRLI AFI = 2, SAFI = 2, Nexthop AFI = 2 */ +#define CAPABILITY_CODE_MIN_FQDN_LEN 2  /* Cooperative Route Filtering Capability.  */  | 
