Doesn't pick the new NIC's IPV6 address when I change NIC's.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to change my network connection from nic_x to nic_y using pyvmomi api's.
vSwitch_config.spec.bridge = vim.host.VirtualSwitch.BondBridge(nicDevice=[curr_nic_info["Name"]],beacon=vSwitch.spec.bridge.beacon, linkDiscoveryProtocolConfig=vSwitch.spec.bridge.linkDiscoveryProtocolConfig)
config.vswitch.append(vSwitch_config)
host_network_system.UpdateNetworkConfig(config,"modify")
host_network_system.RefreshNetworkSystem()
when I use the above code, NIC name gets changed to the new nic on the VMWare Networking console. But it still holds the ipv6 address of the older nic..
Is there any other api's to be invoked so that it takes the new NIC's ipv6 address ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported UpdateNetworkConfig and RefreshNetworkSystem calls in the issue, then inspect the pyvmomi networking bindings for related NIC and IPv6 state APIs. Reproduce the nic_x to nic_y switch and verify whether the console and returned host network state report the new IPv6 address. Done means the new NIC is selected and its IPv6 address is reflected after the update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100