Open jcgruenhage opened 1 year ago
In case anyone else runs into this, I've been able to work around this by using the junos_config
module:
- name: Set interfaces to use VLANs
junipernetworks.junos.junos_config:
lines:
- set interfaces {{ item.interface }} unit 0 family ethernet-switching port-mode trunk
- set interfaces {{ item.interface }} unit 0 family ethernet-switching native-vlan-id {{ item.native_vlan }}
- set interfaces {{ item.interface }} unit 0 family ethernet-switching vlan members [ {{ item.vlan_members | join(' ') }} ]
loop:
- interface: ge-0/0/0
native_vlan: 1
vlan_members: [iot, freifunk]
SUMMARY
native-vlan-id
goes insideunit 0 family ethernet-switching
on pre-ELS switches, but settingenhanced_layer: false
does not affect that part. As a result, untagged traffic is dropped instead of using the configured native vlan.ISSUE TYPE
COMPONENT NAME
junos_l2_interface
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Host OS is Void Linux, but that shouldn't be relevant. Target info:
STEPS TO REPRODUCE
EXPECTED RESULTS
The expected config that should be generated:
ACTUAL RESULTS
The config that is generated instead: