Class: OPNsenseAPI::Core::IPSec::LegacySubsystem

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

Overview

Constant Summary collapse

BASE_PATH =
'/ipsec/legacy_subsystem'

Instance Method Summary collapse

Methods included from OPNsenseAPI::Core

#initialize

Instance Method Details

#apply_config(body = {}) ⇒ Object



27
28
29
# File 'lib/opnsense_api/core/ipsec/legacy_subsystem.rb', line 27

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

#status(params = {}) ⇒ Object



31
32
33
# File 'lib/opnsense_api/core/ipsec/legacy_subsystem.rb', line 31

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