diff options
| author | Isabella de Leon <ideleon@microsoft.com> | 2023-01-06 10:06:23 -0800 | 
|---|---|---|
| committer | Isabella de Leon <ideleon@microsoft.com> | 2023-02-28 11:39:12 -0800 | 
| commit | d74f913c5f487a722b19bd01442b8fe13c4714e8 (patch) | |
| tree | cb9cf781ba9111e2bdbcba8aee687cc994a071b6 /isisd/isisd.c | |
| parent | 617d2b71c0d1b61dfb319f5f629953a95e6beef5 (diff) | |
isisd: Add advertise-high-metrics CLI/YANG support, modify show output
New config and show functionality:
r1# conf
r1(config)# router isis 1
r1(config-router)#
  advertise-high-metrics  Advertise high metric value on all interfaces
  area-password           Configure the authentication password for an area
  ...
r1(config-router)# advertise-high-metrics
r1(config-router)# end
r1# show isis summary
...
Area 1:
  Net: 49.0001.1720.1700.0002.00
  TX counters per PDU type:
     L2 IIH: 1
    P2P IIH: 36
   LSP RXMT: 0
  RX counters per PDU type:
  Advertise high metrics: Enabled
  Level-2:
   ...
r1# conf
r1(config)# router isis 1
r1(config-router)# no advertise-high-metrics
r1(config-router)# end
r1# show isis summary
...
Area 1:
  Net: 49.0001.1720.1700.0002.00
  TX counters per PDU type:
     L2 IIH: 1
    P2P IIH: 45
   LSP RXMT: 0
  RX counters per PDU type:
  Advertise high metrics: Disabled
  Level-2:
   ...
r1#
Signed-off-by: Isabella de Leon <ideleon@microsoft.com>
Diffstat (limited to 'isisd/isisd.c')
| -rw-r--r-- | isisd/isisd.c | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/isisd/isisd.c b/isisd/isisd.c index 852d7b88e8..523333300f 100644 --- a/isisd/isisd.c +++ b/isisd/isisd.c @@ -2503,6 +2503,9 @@ static void common_isis_summary_vty(struct vty *vty, struct isis *isis)  		vty_out(vty, "  RX counters per PDU type:\n");  		pdu_counter_print(vty, "    ", area->pdu_rx_counters); +		vty_out(vty, "  Advertise high metrics: %s\n", +			area->advertise_high_metrics ? "Enabled" : "Disabled"); +  		for (level = ISIS_LEVEL1; level <= ISIS_LEVELS; level++) {  			if ((area->is_type & level) == 0)  				continue; @@ -3247,6 +3250,12 @@ void config_end_lsp_generate(struct isis_area *area)  	}  } +void isis_area_advertise_high_metrics_set(struct isis_area *area, +					  bool advertise_high_metrics) +{ +	/* TODO */ +} +  /*   * Returns the path of the file (non-volatile memory) that contains restart   * information.  | 
