Search in sources :

Example 1 with NtpServer

use of org.batfish.datamodel.vendor_family.cisco.NtpServer in project batfish by batfish.

the class CiscoControlPlaneExtractor method exitNtp_server.

@Override
public void exitNtp_server(Ntp_serverContext ctx) {
    Ntp ntp = _configuration.getCf().getNtp();
    String hostname = ctx.hostname.getText();
    NtpServer server = ntp.getServers().computeIfAbsent(hostname, NtpServer::new);
    if (ctx.vrf != null) {
        String vrfName = ctx.vrf.getText();
        server.setVrf(vrfName);
        initVrf(vrfName);
    }
    if (ctx.PREFER() != null) {
    // TODO: implement
    }
}
Also used : Ntp(org.batfish.datamodel.vendor_family.cisco.Ntp) NtpServer(org.batfish.datamodel.vendor_family.cisco.NtpServer)

Aggregations

Ntp (org.batfish.datamodel.vendor_family.cisco.Ntp)1 NtpServer (org.batfish.datamodel.vendor_family.cisco.NtpServer)1