public Configuration toConfigurationNode( AwsConfiguration awsConfiguration, Region region, Warnings warnings) { Configuration cfgNode = Utils.newAwsConfiguration(_natGatewayId, "aws"); cfgNode.getVendorFamily().getAws().setRegion(region.getName()); // TODO: Configure forwarding for this NAT // for (NatGatewayAddress natAddress : _natGatewayAddresses) { // foreach natgatewayaddress create interfaces for public and private IPs, configure NAT rules // also connect the nat to the VPC router // } return cfgNode; } }
public Configuration toConfigurationNode(AwsConfiguration awsConfiguration, Region region) { Configuration cfgNode = Utils.newAwsConfiguration(_internetGatewayId, "aws"); cfgNode.getVendorFamily().getAws().setRegion(region.getName());
cfgNode.getVendorFamily().getAws().setRegion(region.getName());
cfgNode.getVendorFamily().getAws().setRegion(region.getName());
cfgNode.getVendorFamily().getAws().setRegion(region.getName());
public Configuration toConfigurationNode( AwsConfiguration awsConfiguration, Region region, Warnings warnings) { Configuration cfgNode = Utils.newAwsConfiguration(_vpnGatewayId, "aws"); cfgNode.getVendorFamily().getAws().setRegion(region.getName());
public Configuration toConfigurationNode( AwsConfiguration awsConfiguration, Region region, Warnings warnings) { Configuration cfgNode = Utils.newAwsConfiguration(_vpcId, "aws"); cfgNode.getVendorFamily().getAws().setRegion(region.getName()); cfgNode.getVendorFamily().getAws().setVpcId(_vpcId); cfgNode .getDefaultVrf() .getStaticRoutes() .add( StaticRoute.builder() .setAdministrativeCost(Route.DEFAULT_STATIC_ROUTE_ADMIN) .setMetric(Route.DEFAULT_STATIC_ROUTE_COST) .setNetwork(_cidrBlock) .setNextHopInterface(Interface.NULL_INTERFACE_NAME) .build()); // we only create a node here // interfaces are added to this node as we traverse subnets and // internetgateways return cfgNode; } }
cfgNode.getVendorFamily().getAws().setRegion(region.getName());