Skip to content

Commit d5606f4

Browse files
authored
Fix RouteMap POST command 200 return empty (#23738)
* Fix POST 200 return empty * Fix lint * Prettier check
1 parent e3e1404 commit d5606f4

File tree

6 files changed

+158
-12
lines changed

6 files changed

+158
-12
lines changed

specification/network/resource-manager/Microsoft.Network/stable/2022-11-01/examples/EffectiveRoutesListForConnection.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,37 @@
1111
},
1212
"responses": {
1313
"200": {
14-
"description": "Request successful. Follow the location header for the effective routes list."
14+
"body": {
15+
"status": "Succeeded",
16+
"properties": {
17+
"output": {
18+
"value": [
19+
{
20+
"addressPrefixes": [
21+
"10.147.128.0/17"
22+
],
23+
"nextHops": [
24+
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0"
25+
],
26+
"nextHopType": "Remote Hub",
27+
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0",
28+
"asPath": "65520-65520"
29+
},
30+
{
31+
"addressPrefixes": [
32+
"10.0.0.0/16"
33+
],
34+
"nextHops": [
35+
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1"
36+
],
37+
"nextHopType": "ExpressRouteGateway",
38+
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1",
39+
"asPath": "12076-12076"
40+
}
41+
]
42+
}
43+
}
44+
}
1545
},
1646
"202": {
1747
"description": "Accepted and the operation will complete asynchronously."

specification/network/resource-manager/Microsoft.Network/stable/2022-11-01/examples/EffectiveRoutesListForRouteTable.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,37 @@
1111
},
1212
"responses": {
1313
"200": {
14-
"description": "Request successful. Follow the location header for the effective routes list."
14+
"body": {
15+
"status": "Succeeded",
16+
"properties": {
17+
"output": {
18+
"value": [
19+
{
20+
"addressPrefixes": [
21+
"10.147.128.0/17"
22+
],
23+
"nextHops": [
24+
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0"
25+
],
26+
"nextHopType": "Remote Hub",
27+
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0",
28+
"asPath": "65520-65520"
29+
},
30+
{
31+
"addressPrefixes": [
32+
"10.0.0.0/16"
33+
],
34+
"nextHops": [
35+
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1"
36+
],
37+
"nextHopType": "ExpressRouteGateway",
38+
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1",
39+
"asPath": "12076-12076"
40+
}
41+
]
42+
}
43+
}
44+
}
1545
},
1646
"202": {
1747
"description": "Accepted and the operation will complete asynchronously."

specification/network/resource-manager/Microsoft.Network/stable/2022-11-01/examples/EffectiveRoutesListForVirtualHub.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,37 @@
88
},
99
"responses": {
1010
"200": {
11-
"description": "Request successful. Follow the location header for the effective routes list."
11+
"body": {
12+
"status": "Succeeded",
13+
"properties": {
14+
"output": {
15+
"value": [
16+
{
17+
"addressPrefixes": [
18+
"10.147.128.0/17"
19+
],
20+
"nextHops": [
21+
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0"
22+
],
23+
"nextHopType": "Remote Hub",
24+
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0",
25+
"asPath": "65520-65520"
26+
},
27+
{
28+
"addressPrefixes": [
29+
"10.0.0.0/16"
30+
],
31+
"nextHops": [
32+
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1"
33+
],
34+
"nextHopType": "ExpressRouteGateway",
35+
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1",
36+
"asPath": "12076-12076"
37+
}
38+
]
39+
}
40+
}
41+
}
1242
},
1343
"202": {
1444
"description": "Accepted and the operation will complete asynchronously."

specification/network/resource-manager/Microsoft.Network/stable/2022-11-01/examples/GetInboundRoutes.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,25 @@
1111
},
1212
"responses": {
1313
"200": {
14-
"description": "Request successful. Follow the location header for the inbound routes list."
14+
"body": {
15+
"status": "Succeeded",
16+
"properties": {
17+
"output": {
18+
"value": [
19+
{
20+
"prefix": "192.168.50.0/24",
21+
"asPath": "65520-65520",
22+
"bgpCommunities": "4293853166,12076,51004"
23+
},
24+
{
25+
"prefix": "10.200.0.0/16",
26+
"asPath": "65520-65520-12076-12076",
27+
"bgpCommunities": "4293787629,12076,51027,4293734188"
28+
}
29+
]
30+
}
31+
}
32+
}
1533
},
1634
"202": {
1735
"description": "Accepted and the operation will complete asynchronously."

specification/network/resource-manager/Microsoft.Network/stable/2022-11-01/examples/GetOutboundRoutes.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,25 @@
1111
},
1212
"responses": {
1313
"200": {
14-
"description": "Request successful. Follow the location header for the outbound routes list."
14+
"body": {
15+
"status": "Succeeded",
16+
"properties": {
17+
"output": {
18+
"value": [
19+
{
20+
"prefix": "192.168.50.0/24",
21+
"asPath": "65520-65520",
22+
"bgpCommunities": "4293853166,12076,51004"
23+
},
24+
{
25+
"prefix": "10.200.0.0/16",
26+
"asPath": "65520-65520-12076-12076",
27+
"bgpCommunities": "4293787629,12076,51027,4293734188"
28+
}
29+
]
30+
}
31+
}
32+
}
1533
},
1634
"202": {
1735
"description": "Accepted and the operation will complete asynchronously."

specification/network/resource-manager/Microsoft.Network/stable/2022-11-01/virtualWan.json

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6149,7 +6149,10 @@
61496149
],
61506150
"responses": {
61516151
"200": {
6152-
"description": "Request successful. Follow the location header for the effective routes list."
6152+
"description": "Request successful. Returns the list of the effective routes or follow the location header for the effective routes list.",
6153+
"schema": {
6154+
"$ref": "#/definitions/VirtualHubEffectiveRouteList"
6155+
}
61536156
},
61546157
"202": {
61556158
"description": "Accepted and the operation will complete asynchronously."
@@ -6209,7 +6212,10 @@
62096212
],
62106213
"responses": {
62116214
"200": {
6212-
"description": "Request successful. Follow the location header for the inbound routes list."
6215+
"description": "Request successful. Returns the list of the effective route map routes or follow the location header for the inbound routes list.",
6216+
"schema": {
6217+
"$ref": "#/definitions/EffectiveRouteMapRouteList"
6218+
}
62136219
},
62146220
"202": {
62156221
"description": "Accepted and the operation will complete asynchronously."
@@ -6269,7 +6275,10 @@
62696275
],
62706276
"responses": {
62716277
"200": {
6272-
"description": "Request successful. Follow the location header for the outbound routes list."
6278+
"description": "Request successful. Returns the list of the effective route map routes or follow the location header for the outbound routes list.",
6279+
"schema": {
6280+
"$ref": "#/definitions/EffectiveRouteMapRouteList"
6281+
}
62736282
},
62746283
"202": {
62756284
"description": "Accepted and the operation will complete asynchronously."
@@ -9331,16 +9340,27 @@
93319340
}
93329341
}
93339342
},
9343+
"EffectiveRouteMapRouteList": {
9344+
"description": "EffectiveRouteMapRoute List.",
9345+
"type": "object",
9346+
"properties": {
9347+
"value": {
9348+
"type": "array",
9349+
"items": {
9350+
"$ref": "#/definitions/EffectiveRouteMapRoute"
9351+
},
9352+
"description": "The list of Effective RouteMap Routes configured on the connection resource.",
9353+
"x-ms-identifiers": []
9354+
}
9355+
}
9356+
},
93349357
"EffectiveRouteMapRoute": {
93359358
"description": "The effective RouteMap route configured on the connection resource.",
93369359
"type": "object",
93379360
"properties": {
93389361
"prefix": {
93399362
"description": "The address prefix of the route.",
9340-
"type": "array",
9341-
"items": {
9342-
"type": "string"
9343-
}
9363+
"type": "string"
93449364
},
93459365
"bgpCommunities": {
93469366
"description": "BGP communities of the route.",

0 commit comments

Comments
 (0)