vmware / vmware/pyvmomi

Override portgroup security settings for standard vswitch

Open
#697 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs verification
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

I am able to set the security settings for a portgroup using Pyvmomi. But then when I go back to vSphere Client UI, I don't see that taking effect. There is an option to 'override' though. How exactly do I use that override? I saw some examples on overriding the DVS portgroup policy but none for standard switch portgroup policy. Appreciate the help!

Here's what I have for setting the portgroup poicies:
for portgroup in esxHost.configManager.networkSystem.networkConfig.portgroup:
if portgroup.spec.name == 'Management Network':
portgroup.spec.policy.security.allowPromiscuous = False
portgroup.spec.policy.security.forgedTransmits = True
portgroup.spec.policy.security.macChanges = True

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the issue's portgroup policy code at esxHost.configManager.networkSystem.networkConfig.portgroup and compare it with the standard switch portgroup security settings shown in the vSphere Client. Determine how the override option is represented for this policy, then document the required usage and a way to verify that the settings take effect.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.