Search in sources :

Example 1 with RoutedSimpleRouteInputBuilder

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);
}
Also used : RoutedSimpleRouteInput(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.rpc.routing.rev140701.RoutedSimpleRouteInput) RoutedSimpleRouteInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.rpc.routing.rev140701.RoutedSimpleRouteInputBuilder) Test(org.junit.Test)

Example 2 with RoutedSimpleRouteInputBuilder

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();
}
Also used : RoutedSimpleRouteInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.rpc.routing.rev140701.RoutedSimpleRouteInputBuilder)

Aggregations

RoutedSimpleRouteInputBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.rpc.routing.rev140701.RoutedSimpleRouteInputBuilder)2 Test (org.junit.Test)1 RoutedSimpleRouteInput (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.rpc.routing.rev140701.RoutedSimpleRouteInput)1