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);
}
Aggregations