Search in sources :

Example 1 with AwsFamily

use of org.batfish.datamodel.vendor_family.AwsFamily in project batfish by batfish.

the class Utils method newAwsConfiguration.

public static Configuration newAwsConfiguration(String name, String domainName) {
    Configuration c = FACTORY.configurationBuilder().setHostname(name).setDomainName(domainName).setConfigurationFormat(ConfigurationFormat.AWS).setDefaultInboundAction(LineAction.ACCEPT).setDefaultCrossZoneAction(LineAction.ACCEPT).build();
    FACTORY.vrfBuilder().setName(Configuration.DEFAULT_VRF_NAME).setOwner(c).build();
    c.getVendorFamily().setAws(new AwsFamily());
    return c;
}
Also used : Configuration(org.batfish.datamodel.Configuration) AwsFamily(org.batfish.datamodel.vendor_family.AwsFamily)

Aggregations

Configuration (org.batfish.datamodel.Configuration)1 AwsFamily (org.batfish.datamodel.vendor_family.AwsFamily)1