- @hostname = hostname
- @queues = queues
- RestClient.put(
"http://#{@host}:#{@port}/set_host2queues?host=#{@hostname}&queues=#{@queues}", {}
- )
- end
- def delete_mac2host
- RestClient.put(
"http://#{@host}:#{@port}/del_host_mac?mac=#{@mac}", {}
Use @mac will limit call the function, as the params will be better.
good
i will remove them to ensure the independence of the method
Thanks, Shenwei
Thanks, Xueliang
- )
- end
- def delete_host2queues
- RestClient.put(
"http://#{@host}:#{@port}/del_host2queues?host=#{@hostname}", {}
- )
- end
end
2.23.0