Skip to content

Commit

Permalink
Remove readonly flag from microsoftSessionAddress properties in BgpSe…
Browse files Browse the repository at this point in the history
…ssion; add an example for IxRs directPeeringType (Azure#8517)
  • Loading branch information
psanapathi authored and josuh committed Mar 4, 2020
1 parent 9106e9c commit 1b3c89a
Show file tree
Hide file tree
Showing 2 changed files with 139 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{
"parameters": {
"subscriptionId": "subId",
"resourceGroupName": "rgName",
"peeringName": "peeringName",
"api-version": "2020-01-01-preview",
"peering": {
"sku": {
"name": "Premium_Direct_Free"
},
"kind": "Direct",
"properties": {
"direct": {
"connections": [
{
"bandwidthInMbps": 10000,
"sessionAddressProvider": "Peer",
"useForPeeringService": true,
"peeringDBFacilityId": 99999,
"bgpSession": {
"sessionPrefixV4": "192.168.0.0/24",
"microsoftSessionIPv4Address": "192.168.0.123",
"peerSessionIPv4Address": "192.168.0.234",
"maxPrefixesAdvertisedV4": 1000,
"maxPrefixesAdvertisedV6": 100
},
"connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16"
}
],
"peerAsn": {
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
},
"directPeeringType": "IxRs"
},
"peeringLocation": "peeringLocation0"
},
"location": "eastus"
}
},
"responses": {
"200": {
"body": {
"sku": {
"name": "Premium_Direct_Free",
"tier": "Premium",
"family": "Direct",
"size": "Free"
},
"kind": "Direct",
"properties": {
"direct": {
"connections": [
{
"bandwidthInMbps": 10000,
"provisionedBandwidthInMbps": 10000,
"sessionAddressProvider": "Peer",
"useForPeeringService": true,
"peeringDBFacilityId": 99999,
"connectionState": "Active",
"bgpSession": {
"sessionPrefixV4": "192.168.0.0/24",
"microsoftSessionIPv4Address": "192.168.0.123",
"peerSessionIPv4Address": "192.168.0.234",
"sessionStateV4": "Established",
"sessionStateV6": "Established",
"maxPrefixesAdvertisedV4": 1000,
"maxPrefixesAdvertisedV6": 100
},
"connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16"
}
],
"useForPeeringService": true,
"peerAsn": {
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
},
"directPeeringType": "IxRs"
},
"peeringLocation": "peeringLocation0",
"provisioningState": "Succeeded"
},
"location": "eastus",
"name": "peeringName",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
"type": "Microsoft.Peering/peerings"
}
},
"201": {
"body": {
"sku": {
"name": "Premium_Direct_Free",
"tier": "Premium",
"family": "Direct",
"size": "Free"
},
"kind": "Direct",
"properties": {
"direct": {
"connections": [
{
"bandwidthInMbps": 10000,
"provisionedBandwidthInMbps": 0,
"sessionAddressProvider": "Peer",
"useForPeeringService": true,
"peeringDBFacilityId": 99999,
"connectionState": "PendingApproval",
"bgpSession": {
"sessionPrefixV4": "192.168.0.0/24",
"microsoftSessionIPv4Address": "192.168.0.123",
"peerSessionIPv4Address": "192.168.0.234",
"sessionStateV4": "PendingAdd",
"sessionStateV6": "PendingAdd",
"maxPrefixesAdvertisedV4": 1000,
"maxPrefixesAdvertisedV6": 100
},
"connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16"
}
],
"useForPeeringService": true,
"peerAsn": {
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
},
"directPeeringType": "IxRs"
},
"peeringLocation": "peeringLocation0",
"provisioningState": "Succeeded"
},
"location": "eastus",
"name": "peeringName",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
"type": "Microsoft.Peering/peerings"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,9 @@
},
"Create an exchange peering": {
"$ref": "./examples/CreateExchangePeering.json"
},
"Create a peering with exchange route server": {
"$ref": "./examples/CreatePeeringWithExchangeRouteServer.json"
}
}
},
Expand Down Expand Up @@ -2222,13 +2225,11 @@
},
"microsoftSessionIPv4Address": {
"description": "The IPv4 session address on Microsoft's end.",
"type": "string",
"readOnly": true
"type": "string"
},
"microsoftSessionIPv6Address": {
"description": "The IPv6 session address on Microsoft's end.",
"type": "string",
"readOnly": true
"type": "string"
},
"peerSessionIPv4Address": {
"description": "The IPv4 session address on peer's end.",
Expand Down

0 comments on commit 1b3c89a

Please sign in to comment.