Search in sources :

Example 1 with MasterBgpPeerGroup

use of org.batfish.representation.cisco.MasterBgpPeerGroup in project batfish by batfish.

the class CiscoControlPlaneExtractor method enterRouter_bgp_stanza.

@Override
public void enterRouter_bgp_stanza(Router_bgp_stanzaContext ctx) {
    int procNum = (ctx.procnum == null) ? 0 : toInteger(ctx.procnum);
    BgpProcess proc = new BgpProcess(_format, procNum);
    _configuration.getVrfs().get(Configuration.DEFAULT_VRF_NAME).setBgpProcess(proc);
    _dummyPeerGroup = new MasterBgpPeerGroup();
    pushPeer(proc.getMasterBgpPeerGroup());
}
Also used : BgpProcess(org.batfish.representation.cisco.BgpProcess) MasterBgpPeerGroup(org.batfish.representation.cisco.MasterBgpPeerGroup)

Aggregations

BgpProcess (org.batfish.representation.cisco.BgpProcess)1 MasterBgpPeerGroup (org.batfish.representation.cisco.MasterBgpPeerGroup)1