> if($interface = bond) {
> create_bond($bond.'v'.$vlan)
> interfaces=find_interfaces_in_bond($interface)
> foreach interface{
> add_vlan_to_interface ("vconfig add interface $vlan" #(eth0->eth0.X ,eth0-
> > eth1.x ))
> add_interface_to $bond.'v'.$vlan
> }
Can't you tag the whole bond? Seems clumsy to tag all bond members.
- Dietmar