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

Switch port type missing input validation? #2334

Closed
spikefishjohn opened this issue Dec 22, 2023 · 1 comment
Closed

Switch port type missing input validation? #2334

spikefishjohn opened this issue Dec 22, 2023 · 1 comment

Comments

@spikefishjohn
Copy link
Contributor

GNS3 2.3.3.1.. uh.. Custom...

I've been playing with ansible + gns3 and noticed I had a type on a switch port which set command (dot1 vs dot1). I then tried setting it to bugs.

curl -X PUT 'http://127.0.0.1:3080/v2/compute/projects/546d66f9-b9a4-4021-b651-a8e043944807/ethernet_switch/nodes/ebe62463-d9a5-4603-98b3-6a75ec496236' -d '{"ports_mapping": [{"ethertype": "", "name": "Ethernet0", "port_number": 0, "type": "dot1q", "vlan": 1}, {"ethertype": "", "name": "Ethernet1", "port_number": 1, "type": "dot1q", "vlan": 1}, {"ethertype": "", "name": "Ethernet2", "port_number": 2, "type": "bugs", "vlan": 1}], "name": "Switch1", "console": 7043, "console_type": "none"}'

Worked fine!

image

I'm assuming the only 3 valid inputs for a switch node port type are ("access", "dot1q" or "qinq" ).

@grossmj
Copy link
Member

grossmj commented Jan 11, 2024

Fixed, thanks 👍

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