functions.sh: make IFB interface name configurable
Accept a new variable $IFB_PATTERN which is used as a printf(1)
pattern to generate the IFB interface name from the primary interface
name. The default is ifb4%s which corresponds to the pre-existing
behavior.
Signed-off-by: Ivan Shapovalov [email protected]
Out of curiosity, what is the motivation for this?
Out of curiosity, what is the motivation for this?
Some less-than-configurable monitoring software that uses hardcoded patterns of ignored interface names. There is a pattern for ifb interfaces, but it does not match ifb4*.
Fair, may I ask to maybe add this to the commit description (maybe even reveal that monitoring software's name)? So far the fixed naming for sqm created IFBs has helped in the past to detect cases where users accidentally tried multiple traffic shaping solutions in parallel...
Yes, please document the reason for the change in the commit message :)