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.h | |
| 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.h')
| -rw-r--r-- | isisd/isisd.h | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/isisd/isisd.h b/isisd/isisd.h index 0f1161e574..37a36fd37a 100644 --- a/isisd/isisd.h +++ b/isisd/isisd.h @@ -175,6 +175,8 @@ struct isis_area {  	uint32_t overload_on_startup_time;  	/* advertise prefixes of passive interfaces only? */  	bool advertise_passive_only; +	/* Are we advertising high metrics? */ +	bool advertise_high_metrics;  	/* L1/L2 router identifier for inter-area traffic */  	char attached_bit_send;  	char attached_bit_rcv_ignore; @@ -289,6 +291,8 @@ void isis_area_switchover_routes(struct isis_area *area, int family,  void isis_area_overload_bit_set(struct isis_area *area, bool overload_bit);  void isis_area_overload_on_startup_set(struct isis_area *area,  				       uint32_t startup_time); +void isis_area_advertise_high_metrics_set(struct isis_area *area, +					  bool advertise_high_metrics);  void isis_area_attached_bit_send_set(struct isis_area *area, bool attached_bit);  void isis_area_attached_bit_receive_set(struct isis_area *area,  					bool attached_bit);  | 
