networktocode / ntc-rosetta

The missing bridge between industry standard CLIs and YANG
https://ntc-rosetta.readthedocs.io/en/latest/index.html
Apache License 2.0
103 stars 23 forks source link

BugFix: ios - oc-vlan - vlan internal config #35

Closed FragmentedPacket closed 4 years ago

FragmentedPacket commented 4 years ago

Fixes #23

This is just a generic fix. If we think there is a better way, we can definitely do that. This basically checks to see if the vlan can be converted into an integer, if not, it does not yield the results.

I did it this way as there are a few config options pointed out by @dgjustice in the issue and the valid options should be able to be converted into integers within the oc-vlan model.