Skip to content

Commit

Permalink
Aneeshakella/scalable gateway swagger changes (#25107)
Browse files Browse the repository at this point in the history
* Added additional scalable gateway changes

* small formatting change

* made documents prettier

* prettier changes

* added references to fix avocado

* testing a fix

* another test

* added new test

* new changes

* removed update

* new changes

* updated specs

* updated specs
  • Loading branch information
aneeshakella-microsoft authored Aug 11, 2023
1 parent 08e237f commit af6f9b1
Show file tree
Hide file tree
Showing 3 changed files with 406 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"parameters": {
"api-version": "2023-05-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"virtualNetworkGatewayName": "ergw"
},
"responses": {
"200": {
"body": {
"name": "ergw",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/virtualNetworkGateways",
"location": "centralus",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"ipConfigurations": [
{
"name": "gwipconfig1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/ipConfigurations/default",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"properties": {
"provisioningState": "Succeeded",
"privateIPAllocationMethod": "Static",
"publicIPAddress": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip"
},
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet"
}
}
}
],
"natRules": [
{
"name": "natRule1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule1",
"etag": "W/\"00ae2b69-88e7-4b3a-b66a-cfa2244e0801\"",
"properties": {
"provisioningState": "Succeeded",
"type": "Static",
"mode": "EgressSnat",
"internalMappings": [
{
"addressSpace": "10.10.0.0/24"
}
],
"externalMappings": [
{
"addressSpace": "50.0.0.0/24"
}
]
}
},
{
"name": "natRule2",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule2",
"etag": "W/\"00ae2b69-88e7-4b3a-b66a-cfa2244e0801\"",
"properties": {
"provisioningState": "Succeeded",
"type": "Static",
"mode": "IngressSnat",
"internalMappings": [
{
"addressSpace": "20.10.0.0/24"
}
],
"externalMappings": [
{
"addressSpace": "30.0.0.0/24"
}
]
}
}
],
"enableBgpRouteTranslationForNat": false,
"sku": {
"name": "ErGwScale",
"tier": "ErGwScale",
"capacity": 2
},
"autoScaleConfiguration": {
"bounds": {
"min": 2,
"max": 3
}
},
"gatewayType": "ExpressRoute",
"vpnType": "PolicyBased",
"vpnGatewayGeneration": "None",
"enableBgp": false,
"enablePrivateIpAddress": false,
"activeActive": false,
"disableIPSecReplayProtection": false,
"vpnClientConfiguration": null,
"bgpSettings": null,
"customRoutes": null,
"allowVirtualWanTraffic": false,
"allowRemoteVnetTraffic": false
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,269 @@
{
"parameters": {
"api-version": "2023-05-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"virtualNetworkGatewayName": "ergw",
"parameters": {
"properties": {
"ipConfigurations": [
{
"properties": {
"privateIPAllocationMethod": "Static",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet"
},
"publicIPAddress": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip"
}
},
"name": "gwipconfig1"
}
],
"gatewayType": "ExpressRoute",
"vpnType": "PolicyBased",
"enableBgp": false,
"activeActive": false,
"disableIPSecReplayProtection": false,
"natRules": [
{
"name": "natRule1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule1",
"properties": {
"type": "Static",
"mode": "EgressSnat",
"ipConfigurationId": "",
"internalMappings": [
{
"addressSpace": "10.10.0.0/24"
}
],
"externalMappings": [
{
"addressSpace": "50.0.0.0/24"
}
]
}
},
{
"name": "natRule2",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule2",
"properties": {
"type": "Static",
"mode": "IngressSnat",
"ipConfigurationId": "",
"internalMappings": [
{
"addressSpace": "20.10.0.0/24"
}
],
"externalMappings": [
{
"addressSpace": "30.0.0.0/24"
}
]
}
}
],
"enableBgpRouteTranslationForNat": false,
"sku": {
"name": "ErGwScale",
"tier": "ErGwScale"
},
"vpnClientConfiguration": null,
"bgpSettings": null,
"allowVirtualWanTraffic": false,
"allowRemoteVnetTraffic": false
},
"location": "centralus"
}
},
"responses": {
"200": {
"body": {
"name": "ergw",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/virtualNetworkGateways",
"location": "centralus",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"ipConfigurations": [
{
"name": "gwipconfig1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/ipConfigurations/default",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"properties": {
"provisioningState": "Succeeded",
"privateIPAllocationMethod": "Dynamic",
"publicIPAddress": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip"
},
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet"
}
}
}
],
"natRules": [
{
"name": "natRule1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule1",
"properties": {
"type": "Static",
"mode": "EgressSnat",
"ipConfigurationId": "",
"internalMappings": [
{
"addressSpace": "10.10.0.0/24"
}
],
"externalMappings": [
{
"addressSpace": "50.0.0.0/24"
}
]
}
},
{
"name": "natRule2",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule2",
"properties": {
"type": "Static",
"mode": "IngressSnat",
"ipConfigurationId": "",
"internalMappings": [
{
"addressSpace": "20.10.0.0/24"
}
],
"externalMappings": [
{
"addressSpace": "30.0.0.0/24"
}
]
}
}
],
"enableBgpRouteTranslationForNat": false,
"sku": {
"name": "ErGwScale",
"tier": "ErGwScale",
"capacity": 0
},
"autoScaleConfiguration": {
"bounds": {
"min": 2,
"max": 3
}
},
"gatewayType": "ExpressRoute",
"vpnType": "PolicyBased",
"vpnGatewayGeneration": "None",
"enableBgp": false,
"activeActive": false,
"disableIPSecReplayProtection": false,
"vpnClientConfiguration": null,
"bgpSettings": null,
"customRoutes": null,
"allowVirtualWanTraffic": false,
"allowRemoteVnetTraffic": false
}
}
},
"201": {
"body": {
"name": "ergw",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/virtualNetworkGateways",
"location": "centralus",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"ipConfigurations": [
{
"name": "gwipconfig1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/ipConfigurations/default",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"properties": {
"provisioningState": "Succeeded",
"privateIPAllocationMethod": "Static",
"publicIPAddress": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip"
},
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet"
}
}
}
],
"natRules": [
{
"name": "natRule1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule1",
"properties": {
"type": "Static",
"mode": "EgressSnat",
"ipConfigurationId": "",
"internalMappings": [
{
"addressSpace": "10.10.0.0/24"
}
],
"externalMappings": [
{
"addressSpace": "50.0.0.0/24"
}
]
}
},
{
"name": "natRule2",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule2",
"properties": {
"type": "Static",
"mode": "IngressSnat",
"ipConfigurationId": "",
"internalMappings": [
{
"addressSpace": "20.10.0.0/24"
}
],
"externalMappings": [
{
"addressSpace": "30.0.0.0/24"
}
]
}
}
],
"enableBgpRouteTranslationForNat": false,
"sku": {
"name": "ErGwScale",
"tier": "ErGwScale",
"capacity": 2
},
"autoScaleConfiguration": {
"bounds": {
"min": 2,
"max": 3
}
},
"gatewayType": "ExpressRoute",
"vpnType": "PolicyBased",
"enableBgp": false,
"activeActive": false,
"disableIPSecReplayProtection": false,
"enablePrivateIpAddress": false,
"vpnClientConfiguration": null,
"bgpSettings": null,
"customRoutes": null,
"allowVirtualWanTraffic": false,
"allowRemoteVnetTraffic": false
}
}
}
}
}
Loading

0 comments on commit af6f9b1

Please sign in to comment.