Class: F5::Cli::Interface

Inherits:
Subcommand show all
Defined in:
lib/f5/cli/application.rb

Instance Method Summary collapse

Instance Method Details

#listObject



148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/f5/cli/application.rb', line 148

def list
  response = client.Networking.Interfaces.get_list

  interfaces = extract_items(response, :as_array)
  if interfaces.empty?
    puts "No interfaces found"
  else
    interfaces.each do |interface|
      puts interface
    end
  end
end