lib/junos-ez/lag_ports.rb
# LAG ports sit at the toplevel interface

LAG ports sit at the toplevel interface
LAG ports sit at the toplevel interface
def xml_change_lacp( xml )
    if @should[:lacp] == :disabled or @should[:lacp].nil?
      xml.send(:'aggregated-ether-options') {
        xml.lacp( Netconf::JunosConfig::DELETE )
      }
    else
      xml.send(:'aggregated-ether-options') {
        xml.lacp { xml.send @should[:lacp] }      
      }
    end
  end
def xml_change_lacp ( xml ) if @should [ :lacp ] == :disabled or @should [ :lacp ] . nil? xml . send ( :' aggregated-ether-options ' ) { xml . lacp ( Netconf :: JunosConfig :: DELETE ) } else xml . send ( :' aggregated-ether-options ' ) { xml . lacp { xml . send @should [ :lacp ] } } end end
LAG ports sit at the toplevel interface
LAG ports sit at the toplevel interface
# @@@ should validate :lacp value before doing this...

xml
<not_specific>