Skip to content

Commit

Permalink
Upgrade hAP AC2 and AC3 for DSA transition
Browse files Browse the repository at this point in the history
  • Loading branch information
jkilpatr committed Feb 2, 2024
1 parent 05c234e commit e757efe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 56 deletions.
4 changes: 2 additions & 2 deletions profiles/devices/mikrotik_hap-ac2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ channel: 11
five_ghz_channel: 36

listen_interfaces:
- eth1
- wan

# this device has a history of using low vlans and moving them around between
# releases because of that we've moved our own vlans up to 10+ and set it up
# such that port eth0.11 -> the switch (eth0) and port 1 (vlan 11 = 10 + port number 1)
lan_interfaces: "eth0.11 eth0.12 eth0.13 eth0.14"
lan_interfaces: "lan1 lan2 lan3 lan4"

rust_target: armv7-unknown-linux-musleabihf
4 changes: 2 additions & 2 deletions profiles/devices/mikrotik_hap-ac3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ channel: 11
five_ghz_channel: 36

listen_interfaces:
- eth1
- wan

# this device has a history of using low vlans and moving them around between
# releases because of that we've moved our own vlans up to 10+ and set it up
# such that port eth0.11 -> the switch (eth0) and port 1 (vlan 11 = 10 + port number 1)
lan_interfaces: "eth0.11 eth0.12 eth0.13 eth0.14"
lan_interfaces: "lan1 lan2 lan3 lan4"


rust_target: armv7-unknown-linux-musleabihf
26 changes: 0 additions & 26 deletions roles/build-config/templates/mikrotik_hap-ac2-network.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,3 @@ config interface 'rita_{{interface | replace(".","")}}'
option ifname {{interface}}
option proto static
{% endfor %}

config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'

# you can't use vlan 1 on this device, so we put port 1 on vlan 5
config switch_vlan
option device 'switch0'
option vlan '11'
option ports '1 0t'

config switch_vlan
option device 'switch0'
option vlan '12'
option ports '2 0t'

config switch_vlan
option device 'switch0'
option vlan '13'
option ports '3 0t'

config switch_vlan
option device 'switch0'
option vlan '14'
option ports '4 0t'
26 changes: 0 additions & 26 deletions roles/build-config/templates/mikrotik_hap-ac3-network.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,3 @@ config interface 'rita_{{interface | replace(".","")}}'
option ifname {{interface}}
option proto static
{% endfor %}

config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'

# you can't use vlan 1 on this device, so we put port 1 on vlan 5
config switch_vlan
option device 'switch0'
option vlan '11'
option ports '1 0t'

config switch_vlan
option device 'switch0'
option vlan '12'
option ports '2 0t'

config switch_vlan
option device 'switch0'
option vlan '13'
option ports '3 0t'

config switch_vlan
option device 'switch0'
option vlan '14'
option ports '4 0t'

0 comments on commit e757efe

Please sign in to comment.