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

"Default" State of Switchport in documentation is confusing #105

Open
FredPocai opened this issue Oct 8, 2021 · 0 comments
Open

"Default" State of Switchport in documentation is confusing #105

FredPocai opened this issue Oct 8, 2021 · 0 comments

Comments

@FredPocai
Copy link

Documentation states "default state" is "no switchport". I believe the documenetation intends to state this is the default state of the interface, but this is not the default behavior of the template.

| ``switchport`` | boolean: true,false\* | Configures an interface in L2 mode | os10 |

However, the "no switchport" command is not applied if the "switchport" key is not present in the os10_interface dict....unless "portmode" is set (which is a bit counterintuitive).

Taking this section of the template to an online jinja parser:

{ "intf_vars": { "portmode" : "" }} renders "no switchport"
{ "intf_vars": {} } renders nothing.

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

No branches or pull requests

1 participant