On 10/13/2015 04:29 PM, Eric Blake wrote:
On 10/13/2015 12:57 PM, Laine Stump wrote:
> Although initscripts only considers an interface to be a bond if it
> has slaves, there are times when setting up a bond, or testing, when a
> bond may not have any slaves (yet) but does have a BONDING_OPTS
> attribute. Previously in those situations netcf would identify the
> interface as a plain ethernet. This patch makes the check more
> inclusive - now any interface with slaves *or* with a BONDING_OPTS
> attribute is considered to be a bond.
>
> This patch was inspired by an earlier patch sent by Lubomir Rintel
> which looked for BONDING_OPTS *instead of* looking for slaves.
> ---
>
> After asking a couple questions about Lubomir's original patch last
>
> <xsl:template name="bond-interface"
> - match="tree[node[@label = 'DEVICE'][@value =
//tree/node[@label = 'MASTER']/@value]][count(node[@label = 'BRIDGE']) =
0]">
> + match="tree[count(node[@label = 'BONDING_OPTS']) or
(node[@label = 'DEVICE'][@value = //tree/node[@label =
'MASTER']/@value])][count(node[@label = 'BRIDGE']) = 0]">
Not sure if you can break up long lines in xsl.
Heh. Me too. Since the other long strings in the file were on a single
line, I just stuck with that.
/me haz 0 xsl sk1llz.
ACK.
Thanks!