Class: OPNsenseAPI::Core::Diagnostics::Interface

Inherits:
Object
  • Object
show all
Includes:
OPNsenseAPI::Core
Defined in:
lib/opnsense_api/core/diagnostics/interface.rb

Constant Summary collapse

BASE_PATH =
'/diagnostics/interface'

Instance Method Summary collapse

Methods included from OPNsenseAPI::Core

#initialize

Instance Method Details

#carp_status(status:) ⇒ Object



26
27
28
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 26

def carp_status(status:)
  @client.post("#{BASE_PATH}/carpStatus/#{status}")
end

#del_route(body = {}) ⇒ Object



30
31
32
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 30

def del_route(body = {})
  @client.post("#{BASE_PATH}/delRoute", body)
end

#flush_arp(body = {}) ⇒ Object



34
35
36
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 34

def flush_arp(body = {})
  @client.post("#{BASE_PATH}/flushArp", body)
end

#get_arp(params = {}) ⇒ Object



38
39
40
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 38

def get_arp(params = {})
  @client.get("#{BASE_PATH}/getArp", params)
end

#get_bpf_statistics(params = {}) ⇒ Object



42
43
44
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 42

def get_bpf_statistics(params = {})
  @client.get("#{BASE_PATH}/getBpfStatistics", params)
end

#get_interface_config(params = {}) ⇒ Object



46
47
48
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 46

def get_interface_config(params = {})
  @client.get("#{BASE_PATH}/getInterfaceConfig", params)
end

#get_interface_names(params = {}) ⇒ Object



50
51
52
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 50

def get_interface_names(params = {})
  @client.get("#{BASE_PATH}/getInterfaceNames", params)
end

#get_memory_statistics(params = {}) ⇒ Object



54
55
56
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 54

def get_memory_statistics(params = {})
  @client.get("#{BASE_PATH}/getMemoryStatistics", params)
end

#get_ndp(params = {}) ⇒ Object



58
59
60
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 58

def get_ndp(params = {})
  @client.get("#{BASE_PATH}/getNdp", params)
end

#get_netisr_statistics(params = {}) ⇒ Object



62
63
64
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 62

def get_netisr_statistics(params = {})
  @client.get("#{BASE_PATH}/getNetisrStatistics", params)
end

#get_pf_sync_statistics(params = {}) ⇒ Object



66
67
68
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 66

def get_pf_sync_statistics(params = {})
  @client.get("#{BASE_PATH}/getPfSyncStatistics", params)
end

#get_protocol_statistics(params = {}) ⇒ Object



70
71
72
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 70

def get_protocol_statistics(params = {})
  @client.get("#{BASE_PATH}/getProtocolStatistics", params)
end

#get_routes(params = {}) ⇒ Object



74
75
76
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 74

def get_routes(params = {})
  @client.get("#{BASE_PATH}/getRoutes", params)
end

#get_socket_statistics(params = {}) ⇒ Object



78
79
80
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 78

def get_socket_statistics(params = {})
  @client.get("#{BASE_PATH}/getSocketStatistics", params)
end

#get_vip_status(params = {}) ⇒ Object



82
83
84
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 82

def get_vip_status(params = {})
  @client.get("#{BASE_PATH}/getVipStatus", params)
end

#search_arp(params = {}) ⇒ Object



86
87
88
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 86

def search_arp(params = {})
  @client.get("#{BASE_PATH}/searchArp", params)
end

#search_ndp(params = {}) ⇒ Object



90
91
92
# File 'lib/opnsense_api/core/diagnostics/interface.rb', line 90

def search_ndp(params = {})
  @client.get("#{BASE_PATH}/searchNdp", params)
end