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 SetExtCommunityTest method testReferenceAdd.
@Test
public void testReferenceAdd() {
Statement statement = this.basicStatements.stream().filter(st -> st.getName().equals("set-ext-community-reference-add-test")).findFirst().get();
RouteAttributeContainer attributeContainer = routeAttributeContainerFalse(new AttributesBuilder().build());
RouteAttributeContainer result = this.statementRegistry.applyExportStatement(this.baseAttributes, this.exportParameters, attributeContainer, statement);
assertEquals(this.multipleExtCom, result.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 SetExtCommunityTest method testInlineRemove.
@Test
public void testInlineRemove() {
Statement statement = this.basicStatements.stream().filter(st -> st.getName().equals("set-ext-community-inline-remove-test")).findFirst().get();
RouteAttributeContainer attributeContainer = routeAttributeContainerFalse(this.multipleExtCom);
RouteAttributeContainer result = this.statementRegistry.applyExportStatement(this.baseAttributes, this.exportParameters, attributeContainer, statement);
assertEquals(this.emptyExtCom, result.getAttributes());
}
Aggregations