Bug #3030
closedWhen using LAGG+VLAN+ALTQ, the shaper wizard does not fill in the interface bandwidth
100%
Description
If you are using LAGG+VLAN interfaces (e.g. lagg0_vlan10) in the shaper wizard, the wizard does not fill in the bandwidth for the interface when creating the queues. This leads to an invalid ruleset because the value entered for the WAN bandwidth will always be higher than the other interface, since they don't have any bandwidth defined.
The bandwidth for an interface is normally reported by the OS in ifconfig, for example:
bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 [...] media: Ethernet autoselect (100baseTX <full-duplex>)
But that doesn't seem to work on lagg:
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 [...] media: Ethernet autoselect
It does normally work on VLAN interfaces, such as:
fxp0_vlan10: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 [...] media: Ethernet autoselect (100baseTX <full-duplex>)
But because the lagg interface is the parent of the VLANs, it doesn't show the bandwidth there either:
lagg0_vlan10: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 [...] media: Ethernet autoselect
The shaper wizard would either have to assume some other value as a default, or account for lagg and track down the link speed of the parent interface(s).