Merge pull request #51557 from robmry/replace_lock_in_remote_nw_driver

Remote nw driver: restore missing nwEndpointsMu.Lock
This commit is contained in:
Sebastiaan van Stijn
2025-11-19 16:35:48 +00:00
committed by GitHub

View File

@@ -415,6 +415,7 @@ func (d *driver) ProgramExternalConnectivity(_ context.Context, nid, eid string,
// revokeExternalConnectivity method is invoked to remove any external connectivity programming related to the endpoint.
func (d *driver) revokeExternalConnectivity(nid, eid string) error {
d.nwEndpointsMu.Lock()
ep, ok := d.nwEndpoints[eid]
d.nwEndpointsMu.Unlock()
if !ok {