-
Notifications
You must be signed in to change notification settings - Fork 649
[ssw][ha] vnetorch supporting DPU live re-pairing #4042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
… custom bfd; add tx rx for custom bfd
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| # Re-pairing and change primary to remote | ||
| create_vnet_routes(dvs, "100.100.1.1/32", vnet_name, '9.1.0.1,9.1.0.3', ep_monitor='9.1.0.1,9.1.0.3', primary ='9.1.0.3', monitoring='custom_bfd', adv_prefix='100.100.1.1/32', check_directly_connected=True, rx_monitor_timer=100, tx_monitor_timer=100) | ||
|
|
||
| # BFD session should have been removed for the old remote endpoint |
Check warning
Code scanning / CodeQL
Variable defined multiple times Warning test
redefined
| create_vnet_entry(dvs, vnet_name, tunnel_name, '10029', "", advertise_prefix=True, overlay_dmac="22:33:33:44:44:66") | ||
|
|
||
| vnet_obj.check_vnet_entry(dvs, vnet_name) | ||
| vnet_obj.check_vxlan_tunnel_entry(dvs, tunnel_name, vnet_name, '10029') |
Check notice
Code scanning / CodeQL
Unused local variable Note test
| # Remove tunnel route 1 | ||
| delete_vnet_routes(dvs, "100.100.1.1/32", vnet_name) | ||
| time.sleep(2) | ||
| vnet_obj.check_del_vnet_routes(dvs, vnet_name, ["100.100.1.1/32"]) |
Check notice
Code scanning / CodeQL
Unused local variable Note test
What I did
Support route update from vnet tunnel route config change for
custom_bfdmonitoring. In DPU repairing scenario (to form HA sets), VNetOrch needs to support live update of endpoints, monitoring endpoints, primary and secondary groups.sign-off: Jing Zhang [email protected]
Why I did it
This change is required for DPU repair in HA.
How I did it
When there is a route config change (i.e. primary endpoint changes), pass a BFD state update with
Initstate to trigger the monitoring session creation & deletion, and route update. Notice that monitoring orch will passDownandUpstate to vnet orch.How I verified it
Details if related