Skip to content

Commit 570ac25

Browse files
committed
fix(mikrotik): add mac learning to swOS vlans
1 parent 46c8b7e commit 570ac25

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

ansible/inventory/host_vars/mk-sw-01.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
---
2-
# CSS318-16G-2S+ speaks the full-SwOS HTTP schema despite its "CSS" name, which
3-
# the module would otherwise misdetect as SwOS Lite. Force it.
42
swos_platform: swos
53

64
swos_vlan_group: [1, 20, 30]
@@ -10,7 +8,7 @@ swos_config:
108
trunk_vlans: "{{ swos_vlan_group }}"
119

1210
port_config:
13-
1: {mode: trunk, native_vlan: 1, vlan_group: trunk_vlans}
11+
1: {mode: access, vlan: 1}
1412
2: {mode: access, vlan: 1}
1513
3: {mode: access, vlan: 20}
1614
4: {mode: access, vlan: 1}
@@ -25,4 +23,10 @@ swos_config:
2523
13: {mode: access, vlan: 1}
2624
14: {mode: access, vlan: 1}
2725
15: {mode: access, vlan: 1}
28-
16: {mode: trunk, native_vlan: 1, vlan_group: trunk_vlans}
26+
16:
27+
{mode: trunk, native_vlan: 1, vlan_group: trunk_vlans, vlan_mode: Strict}
28+
29+
vlans:
30+
- {vlan_id: 1, learning: true}
31+
- {vlan_id: 20, learning: true}
32+
- {vlan_id: 30, learning: true}

0 commit comments

Comments
 (0)