VMware Cloud Community
lurims
Enthusiast
Enthusiast
Jump to solution

How to find current values for forged transmits, MAC address changes and Promiscuous mode for DV Portgroup

Having hard time to find the forged transmits, MAC address changes and Promiscuous mode values (just  to get the settings, no changes need to be done) for DV Portgroups.  I found them for DV Switch but not for DV Portgroup.  Anyone has any idea?

pastedImage_0.pngpastedImage_2.png

Reply
0 Kudos
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

var dvp = ...; // your distributed virtual portgroup

var securityPolicy = dvp.config.defaultPortConfig.securityPolicy;

System.log(securityPolicy.allowPromiscuous);

System.log(securityPolicy.macChanges);

System.log(securityPolicy.forgedTransmits);

View solution in original post

Reply
0 Kudos
4 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

var dvp = ...; // your distributed virtual portgroup

var securityPolicy = dvp.config.defaultPortConfig.securityPolicy;

System.log(securityPolicy.allowPromiscuous);

System.log(securityPolicy.macChanges);

System.log(securityPolicy.forgedTransmits);

Reply
0 Kudos
lurims
Enthusiast
Enthusiast
Jump to solution

Thanks for the reply.  But why do not I see that in the API explorer?  Is it an undocumented feature?

pastedImage_1.pngpastedImage_4.png

Reply
0 Kudos
iiliev
VMware Employee
VMware Employee
Jump to solution

You don't see it in VcDVPortSetting because it's in another class that extends this one - VcVMWareDVSPortSetting, which defines the VMware-specific configuration for distributed virtual port.

So API Explorer shows the basic type of the property; it doesn't know that at runtime the property will get a value which is of some type that extends the basic type.

Reply
0 Kudos
lurims
Enthusiast
Enthusiast
Jump to solution

Thank you.

Reply
0 Kudos