use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.openconfig.extensions.rev180329.network.instance.protocol.PeerGroupStateAugmentationBuilder in project bgpcep by opendaylight.
the class PeerGroupStateCliUtilsTest method testPeerGroupStateCli.
@Test
public void testPeerGroupStateCli() throws IOException {
PeerGroupStateCliUtils.displayPeerOperationalState(Collections.singletonList(new PeerGroupBuilder().setPeerGroupName(TEST_GROUP).setState(new org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.neighbor.group.StateBuilder().addAugmentation(new PeerGroupStateAugmentationBuilder().setTotalPrefixes(Uint32.ONE).setTotalPaths(Uint32.TWO).build()).build()).build()), this.stream);
final String expected = Resources.toString(getClass().getClassLoader().getResource("peer-group.txt"), StandardCharsets.UTF_8);
assertEquals(expected, this.output.toString());
}
Aggregations