Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vlan #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

vlan #54

wants to merge 1 commit into from

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