Search in sources :

Example 1 with LldpReturn

use of org.ovirt.engine.core.vdsbroker.vdsbroker.LldpReturn in project ovirt-engine by oVirt.

the class JsonRpcVdsServer method getLldp.

@Override
public LldpReturn getLldp(String[] interfaces) {
    Map<String, Object> filter = new HashMap<>();
    filter.put("devices", interfaces);
    JsonRpcRequest request = new RequestBuilder("Host.getLldp").withParameter("filter", filter).build();
    Map<String, Object> response = new FutureMap(this.client, request);
    return new LldpReturn(response);
}
Also used : LldpReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.LldpReturn) JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder) HashMap(java.util.HashMap)

Aggregations

HashMap (java.util.HashMap)1 LldpReturn (org.ovirt.engine.core.vdsbroker.vdsbroker.LldpReturn)1 JsonRpcRequest (org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest)1 RequestBuilder (org.ovirt.vdsm.jsonrpc.client.RequestBuilder)1