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

Parsing Trunk #7

Open
stoege opened this issue Apr 6, 2023 · 1 comment
Open

Parsing Trunk #7

stoege opened this issue Apr 6, 2023 · 1 comment

Comments

@stoege
Copy link

stoege commented Apr 6, 2023

when parsing an interface where exact one vlan is not allowed, i got a huge list of vlans which blows up the json file.

cfg

interface GigabitEthernet3
description LAN-Link-Customer LI:L
switchport trunk allowed vlan 1-665,667-4094
switchport mode trunk
no ip address

json

    "GigabitEthernet3": {
        "description": "LAN-Link-Customer <LI:L>",
        "allowed_vlan": [
            "1",
            "2",
            "3",
	...
            "664",
            "665",
            "667",
            "668",
	...
            "4092",
            "4093",
            "4094"
        ],
        "mode": "trunk",
        "ipv4": false
    },

is there a way to handle / structure this more intelligent ?

@tdorssers
Copy link
Owner

The YAML file defines the action "expand" for allowed VLAN lists. If you don't want this behavior, you can remove the 'action: expand' line from the YAML definition.

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

2 participants