Search in sources :

Example 1 with LoggingHost

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

the class CiscoControlPlaneExtractor method enterLogging_address.

@Override
public void enterLogging_address(Logging_addressContext ctx) {
    if (_no) {
        return;
    }
    Logging logging = _configuration.getCf().getLogging();
    String hostname = ctx.hostname.getText();
    LoggingHost host = new LoggingHost(hostname);
    logging.getHosts().put(hostname, host);
}
Also used : Logging(org.batfish.datamodel.vendor_family.cisco.Logging) LoggingHost(org.batfish.datamodel.vendor_family.cisco.LoggingHost)

Example 2 with LoggingHost

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

the class CiscoControlPlaneExtractor method exitLogging_server.

@Override
public void exitLogging_server(Logging_serverContext ctx) {
    if (_no) {
        return;
    }
    Logging logging = _configuration.getCf().getLogging();
    String hostname = ctx.hostname.getText();
    LoggingHost host = new LoggingHost(hostname);
    logging.getHosts().put(hostname, host);
}
Also used : Logging(org.batfish.datamodel.vendor_family.cisco.Logging) LoggingHost(org.batfish.datamodel.vendor_family.cisco.LoggingHost)

Example 3 with LoggingHost

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

the class CiscoControlPlaneExtractor method exitLogging_host.

@Override
public void exitLogging_host(Logging_hostContext ctx) {
    if (_no) {
        return;
    }
    Logging logging = _configuration.getCf().getLogging();
    String hostname = ctx.hostname.getText();
    LoggingHost host = new LoggingHost(hostname);
    logging.getHosts().put(hostname, host);
}
Also used : Logging(org.batfish.datamodel.vendor_family.cisco.Logging) LoggingHost(org.batfish.datamodel.vendor_family.cisco.LoggingHost)

Aggregations

Logging (org.batfish.datamodel.vendor_family.cisco.Logging)3 LoggingHost (org.batfish.datamodel.vendor_family.cisco.LoggingHost)3