class Lacp
The Lacp
class provides a class implementation and methods for managing Lacp
on the node. This class presents an abstraction
Public Class Methods
get_lacp(conn)
click to toggle source
This API gets the LACP properties of the system.
parameters: conn - connection object to the node return: JSON response
# File lib/cnos-rbapi/lacp.rb, line 34 def self.get_lacp(conn) url = form_url(conn, @@cfg) hdr = form_hdr(conn) Rest.get(conn, url ,hdr) end
update_lacp(conn, params)
click to toggle source
This API updates the LACP properties of the system.
parameters: conn - connection object to the node sys_prio - System Priority params - dictionary that requires the following format of key-value pairs { "sys_prio": "<sys_prio>", } description - sys_prio :LACP system priority; a positive integer from 1‐65535. Default value: 32768. return: JSON response
# File lib/cnos-rbapi/lacp.rb, line 55 def self.update_lacp(conn, params) url = form_url(conn, @@cfg) hdr = form_hdr(conn) params = params.to_json Rest.put(conn, url, hdr, params) end