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
}
}