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 update_ifd_has()
    @has[:links] = @has[:links].to_a
    if @has[:links].empty?
     raise Junos::Ez::NoProviderError, "\n Either lag interface is not created or links associated with given lag interface is not supported \n"
    else
     ether_option = @has[:links][0].to_s
     @ifd_ether_options = (ether_option.start_with? 'fe-') ? 'fastether-options' : 'gigether-options'
    end  
  end
def update_ifd_has ( ) @has [ :links ] = @has [ :links ] . to_a if @has [ :links ] . empty? raise Junos :: Ez :: NoProviderError , "\n Either lag interface is not created or links associated with given lag interface is not supported \n" else ether_option = @has [ :links ] [ 0 ] . to_s @ifd_ether_options = ( ether_option . start_with? 'fe-' ) ? 'fastether-options' : 'gigether-options' end end
LAG ports sit at the toplevel interface
LAG ports sit at the toplevel interface