use of org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.servicebinding.rev160406.service.bindings.ServicesInfoBuilder in project genius by opendaylight.
the class InterfaceServiceUtil method buildServiceInfo.
public static ServicesInfo buildServiceInfo(String serviceName, int servicePriority) {
List<BoundServices> boundService = new ArrayList<>();
boundService.add(new BoundServicesBuilder().setServicePriority((short) servicePriority).setServiceName(serviceName).build());
return new ServicesInfoBuilder().setBoundServices(boundService).setKey(new ServicesInfoKey(serviceName, ServiceModeIngress.class)).build();
}
Aggregations