Package: ifenslave
Version: 2.11
Severity: important
Tags: patch
The option bond-master doesn't add the defined interface to the bond due to an incorrect variable in the if-up script and due to an incorrect ifquery invocation.
The former issue is caused by code copied from the bond-slaves option, which uses $slave variable to refer to the interface being added, while the $1 argument should be used instead.
Latter issue is caused by incorrectly calling ifstate instead of ifquery when verifying iface stanza for the master interface. Attached patch will fix the issue.