Skip to content

Conversation

@ReignInChaos
Copy link

added vlan functionality

added vlan functionality
default_net="no", compression_type="included")
"""
from ucsmsdk.mometa.fabric.FabricVlan import FabricVlan
vlan = FabricVlan(parent_mo_or_dn=_base_dn, name=name, sharing=sharing, id=id,
Copy link
Member

@vvb vvb Jul 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ReignInChaos this is perfect for global vlan, we need to see how to use the same APIs for other vlans. May be we could provide the base_dn in vlan_create and default it to fabric/lan. that way, fabric specific vlans would also just work by providing a different base_dn argument value. This would need similar changes in vlan_get etc..

WDYT?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great insight! That didn't even occur to me. I'll make updates accordingly.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is a good reference for the base_dn values? Paramerterizing base_dn is an option but I think abstracting that from the user of API would be more beneficial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants