Open kollross opened 1 year ago
Any update on this? I'm trying to set a trunk up and it's failing:
- name: Juniper_l2_interfaces
junipernetworks.junos.junos_l2_interfaces:
config:
- name: ge-0/0/47
trunk:
allowed_vlans:
- Cameras
- Guest_Wifi
native_vlan: 0
state: replaced
error:
fatal: [ex3300]: FAILED! => {"changed": false, "module_stderr": "b'error: Access interface <ge-0/0/47.0> has more than one vlan member: <Guest_Wifi> and <Cameras>\\nerror: configuration check-out failed'", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error"}
there's literally no access config on this port, why would it even be trying to set that up?
I found that setting enhanced_layer: false
made the above work... that was ... confusing.
SUMMARY
When using the junos_l2_interface module to update vlan on interface, the "new" vlan is simply added to the vlan member list of an access port resulting in a failed commit.
Expected behavior: Replace existing vlan configured on the port with new vlan being configured.
ISSUE TYPE
COMPONENT NAME
junipernetworks.junos.junos_l2_interfaces
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
12.3R12-S21
STEPS TO REPRODUCE
EXPECTED RESULTS
Before change:
After change:
ACTUAL RESULTS