use of org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.policy.rev151009.routing.policy.policy.definitions.policy.definition.statements.statement.actions.bgp.actions.set.community.set.community.method.Inline in project bgpcep by opendaylight.
the class SetCommunityTest method testInlineRemove.
@Test
public void testInlineRemove() {
Statement statement = this.basicStatements.stream().filter(st -> st.getName().equals("set-community-inline-remove-test")).findFirst().get();
RouteAttributeContainer attributeContainer = routeAttributeContainerFalse(this.multipleCom);
RouteAttributeContainer result = this.statementRegistry.applyExportStatement(this.baseAttributes, this.exportParameters, attributeContainer, statement);
assertEquals(this.emptyCom, result.getAttributes());
}
use of org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.policy.rev151009.routing.policy.policy.definitions.policy.definition.statements.statement.actions.bgp.actions.set.community.set.community.method.Inline in project bgpcep by opendaylight.
the class SetExtCommunityTest method testInlineReplace.
@Test
public void testInlineReplace() {
Statement statement = this.basicStatements.stream().filter(st -> st.getName().equals("set-ext-community-inline-replace-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.bgp.policy.rev151009.routing.policy.policy.definitions.policy.definition.statements.statement.actions.bgp.actions.set.community.set.community.method.Inline 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