Skip to content

Commit

Permalink
Network july release - Feature: Address space update in peered vNets (#…
Browse files Browse the repository at this point in the history
…11090)

* Adding new fields in PutvNetPeering to support address space update in peered vNets

Added the new fields and the examples to support the address space update in peered vNets.

* Fixing spell checks

* Update custom-words.txt

* Adding the feature to sync the address space on peering

* Using the new example file added

* Reverting the new file as it's mot working

* Fixing a prettier error

Co-authored-by: Hari Prasad Perabattula <haperaba@microsoft.com>
  • Loading branch information
harics24 and Hari Prasad Perabattula authored Oct 16, 2020
1 parent 90775d7 commit eacee41
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 6 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1676,6 +1676,7 @@ Unregistering
Unregisters
unrestorable
unsubstituted
Unsynced
untagged
Untracked
unvalidated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"allowForwardedTraffic": true,
"allowGatewayTransit": false,
"useRemoteGateways": false,
"syncRemoteAddressSpace": true,
"remoteVirtualNetwork": {
"id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2"
}
Expand All @@ -35,12 +36,18 @@
"12.0.0.0/8"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"12.0.0.0/8"
]
},
"remoteBgpCommunities": {
"virtualNetworkCommunity": "12076:20002",
"regionalCommunity": "12076:50004"
},
"peeringState": "Initiated",
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"peeringSyncLevel": "FullySynced"
}
}
},
Expand All @@ -61,12 +68,18 @@
"12.0.0.0/8"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"12.0.0.0/8"
]
},
"remoteBgpCommunities": {
"virtualNetworkCommunity": "12076:20002",
"regionalCommunity": "12076:50004"
},
"peeringState": "Initiated",
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"peeringSyncLevel": "FullySynced"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,18 @@
"12.0.0.0/8"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"12.0.0.0/8"
]
},
"remoteBgpCommunities": {
"virtualNetworkCommunity": "12076:20002",
"regionalCommunity": "12076:50004"
},
"peeringState": "Initiated",
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"peeringSyncLevel": "FullySynced"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@
"12.0.0.0/8"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"12.0.0.0/8"
]
},
"remoteBgpCommunities": {
"virtualNetworkCommunity": "12076:20002",
"regionalCommunity": "12076:50004"
},
"peeringState": "Initiated",
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"peeringSyncLevel": "FullySynced"
}
},
{
Expand All @@ -49,12 +55,18 @@
"13.0.0.0/8"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"13.0.0.0/8"
]
},
"remoteBgpCommunities": {
"virtualNetworkCommunity": "12076:20003",
"regionalCommunity": "12076:50004"
},
"peeringState": "Initiated",
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"peeringSyncLevel": "FullySynced"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,11 @@
},
"remoteAddressSpace": {
"$ref": "#/definitions/AddressSpace",
"description": "The reference to the remote virtual network address space."
"description": "The reference to the address space peered with the remote virtual network."
},
"remoteVirtualNetworkAddressSpace": {
"$ref": "#/definitions/AddressSpace",
"description": "The reference to the current address space of the remote virtual network."
},
"remoteBgpCommunities": {
"$ref": "#/definitions/VirtualNetworkBgpCommunities",
Expand All @@ -1570,6 +1574,25 @@
"modelAsString": true
}
},
"peeringSyncLevel": {
"type": "string",
"description": "The peering sync status of the virtual network peering.",
"enum": [
"FullySynced",
"RemoteUnsynced",
"LocalUnsynced",
"LocalAndRemoteUnsynced"
],
"x-ms-enum": {
"name": "VirtualNetworkPeeringLevel",
"modelAsString": true
}
},
"syncRemoteAddressSpace": {
"type": "boolean",
"default": false,
"description": "Provided when user wants to sync the peering with address space on the remote virtual network after the address space is updated."
},
"provisioningState": {
"readOnly": true,
"$ref": "./network.json#/definitions/ProvisioningState",
Expand Down

0 comments on commit eacee41

Please sign in to comment.