Search in sources :

Example 1 with SntpServer

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);
    }
}
Also used : Sntp(org.batfish.datamodel.vendor_family.cisco.Sntp) SntpServer(org.batfish.datamodel.vendor_family.cisco.SntpServer)

Aggregations

Sntp (org.batfish.datamodel.vendor_family.cisco.Sntp)1 SntpServer (org.batfish.datamodel.vendor_family.cisco.SntpServer)1