Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Windows] Use IP and MAC to find virtual management adatper
1. After creating HNSNetwork, Windows host creates a virtual management network adapter which takes over the uplink's IP and MAC. Originally the name with a format "vEthernet ($uplink_name)" is used to get the virtual adapter, but it might fail when the name is taken by other adapters. In this change, uses the uplink's IP and MAC to find the adpter, and uses the prefix "vEthernet" as a filter. 2. Remove the virtual adapter name from the name list to search the Windows Node transport interface's IP configuration in agent restart case. This is because the IP is finally moved to OVS bridge interface, which is renamed from the virtual network adapter. So in a restart case, a virtual network adapter with the name format "vEthernet ($uplink_name)" should not exist. Signed-off-by: wenyingd <wenyingd@vmware.com>
- Loading branch information
Showing
2 changed files
with
45 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters