use of org.opendaylight.yang.gen.v1.http.openconfig.net.yang.routing.policy.rev151009.routing.policy.top.routing.policy.policy.definitions.policy.definition.statements.Statement in project bgpcep by opendaylight.
the class ExportDefaultStatementTest method testFromInternalOrRRClientToRRClient.
@Test
public void testFromInternalOrRRClientToRRClient() {
final Statement statement = getStatementAndSetToRole("from-internal-or-rr-client-to-route-reflector", PeerRole.RrClient);
final Attributes expectedOutput = createInputWithOriginator();
final RouteAttributeContainer attributeContainer = routeAttributeContainerFalse(createClusterInput());
assertApplyExportStatement(statement, PeerRole.Ibgp, attributeContainer, expectedOutput);
assertApplyExportStatement(statement, PeerRole.RrClient, attributeContainer, expectedOutput);
}
use of org.opendaylight.yang.gen.v1.http.openconfig.net.yang.routing.policy.rev151009.routing.policy.top.routing.policy.policy.definitions.policy.definition.statements.Statement in project bgpcep by opendaylight.
the class ExportDefaultStatementTest method testFromOdlInternalToRRClient.
@Test
public void testFromOdlInternalToRRClient() {
final Statement statement = getStatementAndSetToRole("from-odl-internal-to-internal-or-rr-client", PeerRole.RrClient);
final RouteAttributeContainer attributeContainer = routeAttributeContainerFalse(createClusterInput());
assertApplyExportStatement(statement, PeerRole.Internal, attributeContainer, createClusterInput());
}
use of org.opendaylight.yang.gen.v1.http.openconfig.net.yang.routing.policy.rev151009.routing.policy.top.routing.policy.policy.definitions.policy.definition.statements.Statement in project bgpcep by opendaylight.
the class ExportDefaultStatementTest method testFromExternalToInternal.
@Test
public void testFromExternalToInternal() {
final Statement statement = getStatementAndSetToRole("from-external-to-internal", PeerRole.Ibgp);
final RouteAttributeContainer attributeContainer = routeAttributeContainerFalse(createClusterInput());
assertApplyExportStatement(statement, PeerRole.Ebgp, attributeContainer, attributeContainer.getAttributes());
}
use of org.opendaylight.yang.gen.v1.http.openconfig.net.yang.routing.policy.rev151009.routing.policy.top.routing.policy.policy.definitions.policy.definition.statements.Statement in project bgpcep by opendaylight.
the class ExportDefaultStatementTest method testFromRRclientToInternal.
@Test
public void testFromRRclientToInternal() {
final Statement statement = getStatementAndSetToRole("from-rr-client-to-internal", PeerRole.Ibgp);
final RouteAttributeContainer attributeContainer = routeAttributeContainerFalse(createClusterInput());
assertApplyExportStatement(statement, PeerRole.RrClient, attributeContainer, createInputWithOriginator());
}
use of org.opendaylight.yang.gen.v1.http.openconfig.net.yang.routing.policy.rev151009.routing.policy.top.routing.policy.policy.definitions.policy.definition.statements.Statement in project bgpcep by opendaylight.
the class ImportDefaultStatementTest method testFromNonExternal.
@Test
public void testFromNonExternal() {
final Statement statement = getStatement("from-non-external");
final Attributes expected = ImportAttributeTestUtil.createInput();
final RouteAttributeContainer attributeContainer = routeAttributeContainerFalse(expected);
assertApplyImportStatement(statement, PeerRole.Ibgp, attributeContainer, expected);
assertApplyImportStatement(statement, PeerRole.RrClient, attributeContainer, expected);
assertApplyImportStatement(statement, PeerRole.Internal, attributeContainer, expected);
}
Aggregations