use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.rpc.routing.rev140701.RoutedSimpleRouteInputBuilder in project controller by opendaylight.
the class ContextExtractorTest method testRoutedSimpleExtraction.
@Test
public void testRoutedSimpleExtraction() {
final ContextReferenceExtractor extractor = ContextReferenceExtractor.from(RoutedSimpleRouteInput.class);
final RoutedSimpleRouteInput input = new RoutedSimpleRouteInputBuilder().setRoute(TEST_ROUTE).build();
final InstanceIdentifier<?> extractedValue = extractor.extract(input);
assertSame(TEST_ROUTE, extractedValue);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.rpc.routing.rev140701.RoutedSimpleRouteInputBuilder in project controller by opendaylight.
the class RoutedServiceIT method createSimpleRouteInput.
/**
* Creates flow AddFlowInput for which only node and cookie are set
*
* @param node
* NodeRef value
* @return simpleRouteInput instance
*/
static RoutedSimpleRouteInput createSimpleRouteInput(final InstanceIdentifier<UnorderedList> node) {
final RoutedSimpleRouteInputBuilder ret = new RoutedSimpleRouteInputBuilder();
ret.setRoute(node);
return ret.build();
}
Aggregations