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