sonic-buildimage icon indicating copy to clipboard operation
sonic-buildimage copied to clipboard

start a new service to configure TSA as soon as Linecard comes up, start a timer to configure TSB and configure TSB when timer expires

Open saksarav-nokia opened this issue 10 months ago • 2 comments

Why I did it

The traffic loss is seen when the chassis or Linecard is rebooted . Cloning the https://github.com/Azure/sonic-buildimage-msft/pull/206 to master

Work item tracking
  • Microsoft ADO (number only):

How I did it

Start a service startup_tsa_tsb.service when the IMM comes up This service configures TSA and starts a timer which is provided in device/startup-tsa-tsb.conf for every platform. This service will exit with NOP if the platform doesn't have startup-tsa-tsb.conf in the device folder. If the CONFIG_DB has TSA configured already, the service will exit. When the timer expires, TSB is configured Enhanced "sudo TSC" command output to indicate TSB pending with the remaining timer value and service name if the service is running If the operator issues "sudo TSA" explicitly while the startup_tsa_tsb.service is running, service will be stopped.

How to verify it

Verified that the service is started only in IMM Verified that the service runs only if device/startup-tsa-tsb.conf file exists Verified that the TSA is configured and routes are not advertised to eBGP neighbors till TSB timer expires and TSB is configured. "sudo TSC" shows the TSB Pending with remaining timer interval Service is stopped when the operator issues "sudo TSA"

Which release branch to backport (provide reason below if selected)

  • [ ] 201811
  • [ ] 201911
  • [ ] 202006
  • [ ] 202012
  • [ ] 202106
  • [ ] 202111
  • [ ] 202205
  • [ ] 202211
  • [ ] 202305

Tested branch (Please provide the tested image version)

  • [ ]
  • [ ]

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

saksarav-nokia avatar Mar 28 '24 14:03 saksarav-nokia

@sanjair-git for viz

saksarav-nokia avatar Mar 28 '24 14:03 saksarav-nokia

@rlhui @arlakshm @judyjoseph @abdosi @deepak-singhal0408 Created this PR for master

saksarav-nokia avatar Mar 28 '24 14:03 saksarav-nokia

@gechiang , I have update the master PR with the fix

saksarav-nokia avatar Apr 18 '24 21:04 saksarav-nokia

@abdosi , could you please restart the azure pipeline?

saksarav-nokia avatar May 15 '24 17:05 saksarav-nokia

/azpw run Azure.sonic-buildimage

wumiaont avatar May 15 '24 20:05 wumiaont

@judyjoseph , @lguohan @abdosi , could you please review and merge it?

saksarav-nokia avatar May 24 '24 18:05 saksarav-nokia