use of org.batfish.datamodel.vendor_family.cisco.SntpServer in project batfish by batfish.
the class CiscoControlPlaneExtractor method exitSntp_server.
@Override
public void exitSntp_server(Sntp_serverContext ctx) {
Sntp sntp = _configuration.getCf().getSntp();
String hostname = ctx.hostname.getText();
SntpServer server = sntp.getServers().computeIfAbsent(hostname, SntpServer::new);
if (ctx.version != null) {
int version = toInteger(ctx.version);
server.setVersion(version);
}
}
Aggregations