Search in sources :

Example 1 with BgpNetwork6

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

the class CiscoControlPlaneExtractor method exitNetwork6_bgp_tail.

@Override
public void exitNetwork6_bgp_tail(Network6_bgp_tailContext ctx) {
    Prefix6 prefix6 = new Prefix6(ctx.prefix.getText());
    String map = null;
    Integer mapLine = null;
    if (ctx.mapname != null) {
        map = ctx.mapname.getText();
        mapLine = ctx.mapname.getStart().getLine();
    }
    BgpProcess proc = currentVrf().getBgpProcess();
    BgpNetwork6 bgpNetwork6 = new BgpNetwork6(prefix6, map, mapLine);
    proc.getIpv6Networks().put(prefix6, bgpNetwork6);
}
Also used : BgpNetwork6(org.batfish.representation.cisco.BgpNetwork6) BgpProcess(org.batfish.representation.cisco.BgpProcess) Prefix6(org.batfish.datamodel.Prefix6)

Aggregations

Prefix6 (org.batfish.datamodel.Prefix6)1 BgpNetwork6 (org.batfish.representation.cisco.BgpNetwork6)1 BgpProcess (org.batfish.representation.cisco.BgpProcess)1