-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Address space update in peered vNets (#13521)
* Adding new fields and operation to support the address space update in peered vNets Adding new fields and operation to support the address space update in peered vNets * Adding the new query param in the example As per the review comment, adding the new query param in the example request response of swagger. * Adding the new query param in examples Adding the new query param in examples * Restricting the sync param Restricting the sync param to hold only true as value. We never need to send false. Co-authored-by: Hari Prasad Perabattula <[email protected]>
- Loading branch information
Showing
5 changed files
with
153 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
...ource-manager/Microsoft.Network/stable/2021-02-01/examples/VirtualNetworkPeeringSync.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"parameters": { | ||
"virtualNetworkPeeringName": "peer", | ||
"virtualNetworkName": "vnet1", | ||
"resourceGroupName": "peerTest", | ||
"syncRemoteAddressSpace": "true", | ||
"api-version": "2021-02-01", | ||
"subscriptionId": "subid", | ||
"VirtualNetworkPeeringParameters": { | ||
"properties": { | ||
"allowVirtualNetworkAccess": true, | ||
"allowForwardedTraffic": true, | ||
"allowGatewayTransit": false, | ||
"useRemoteGateways": false, | ||
"remoteVirtualNetwork": { | ||
"id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet1/virtualNetworkPeerings/peer", | ||
"name": "peer", | ||
"properties": { | ||
"allowVirtualNetworkAccess": true, | ||
"allowForwardedTraffic": true, | ||
"allowGatewayTransit": false, | ||
"useRemoteGateways": false, | ||
"remoteVirtualNetwork": { | ||
"id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2" | ||
}, | ||
"remoteAddressSpace": { | ||
"addressPrefixes": [ | ||
"12.0.0.0/8" | ||
] | ||
}, | ||
"remoteVirtualNetworkAddressSpace": { | ||
"addressPrefixes": [ | ||
"12.0.0.0/8" | ||
] | ||
}, | ||
"remoteBgpCommunities": { | ||
"virtualNetworkCommunity": "12076:20002", | ||
"regionalCommunity": "12076:50004" | ||
}, | ||
"peeringState": "Initiated", | ||
"peeringSyncLevel": "FullyInSync", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet1/virtualNetworkPeerings/peer", | ||
"name": "peer", | ||
"properties": { | ||
"allowVirtualNetworkAccess": true, | ||
"allowForwardedTraffic": true, | ||
"allowGatewayTransit": false, | ||
"useRemoteGateways": false, | ||
"remoteVirtualNetwork": { | ||
"id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2" | ||
}, | ||
"remoteAddressSpace": { | ||
"addressPrefixes": [ | ||
"12.0.0.0/8" | ||
] | ||
}, | ||
"remoteVirtualNetworkAddressSpace": { | ||
"addressPrefixes": [ | ||
"12.0.0.0/8" | ||
] | ||
}, | ||
"remoteBgpCommunities": { | ||
"virtualNetworkCommunity": "12076:20002", | ||
"regionalCommunity": "12076:50004" | ||
}, | ||
"peeringState": "Initiated", | ||
"peeringSyncLevel": "FullyInSync", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters