use of org.batfish.representation.cisco.BgpProcess in project batfish by batfish.
the class CiscoControlPlaneExtractor method exitPeer_group_creation_rb_stanza.
@Override
public void exitPeer_group_creation_rb_stanza(Peer_group_creation_rb_stanzaContext ctx) {
String name = ctx.name.getText();
int definitionLine = ctx.name.getLine();
BgpProcess proc = currentVrf().getBgpProcess();
if (proc.getNamedPeerGroups().get(name) == null) {
proc.addNamedPeerGroup(name, definitionLine);
if (ctx.PASSIVE() != null) {
// dell: won't otherwise specify activation so just activate here
NamedBgpPeerGroup npg = proc.getNamedPeerGroups().get(name);
npg.setActive(true);
}
}
}
Aggregations