Method: Vlag.update_vlag_inst
- Defined in:
- lib/cnos-rbapi/vlag.rb
.update_vlag_inst(conn, inst_id, params) ⇒ Object
parameters:
conn - connection object to the node
inst_id - Vlan instance ID number
params - dictionary that requires the following format of key-value pairs
{
209 210 211 212 213 214 215 |
# File 'lib/cnos-rbapi/vlag.rb', line 209 def self.update_vlag_inst(conn, inst_id, params) url = form_url(conn, @@cfg + '/instance/' + inst_id.to_s) hdr = form_hdr(conn) params = params.to_json Rest.post(conn, url, hdr, params) end |