Skip to content

Commit 8802b3f

Browse files
committed
address comments
1 parent 0e823d4 commit 8802b3f

File tree

4 files changed

+36
-38
lines changed

4 files changed

+36
-38
lines changed

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/Stats/GetAzureExpressRouteCircuitARPTableCommand.cs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,13 @@
1919
using Microsoft.Azure.Commands.Tags.Model;
2020
using Microsoft.Azure.Management.Network;
2121
using Microsoft.Azure.Commands.Network.Models;
22-
using MNM = Microsoft.Azure.Management.Network.Models;
23-
22+
using MNM = Microsoft.Azure.Management.Network.Models;
23+
using System;
24+
using AutoMapper;
25+
using System.Linq;
26+
2427
namespace Microsoft.Azure.Commands.Network
25-
{
26-
using System;
27-
using System.Collections;
28-
using System.Linq;
29-
30-
using AutoMapper;
31-
28+
{
3229
public enum DevicePathEnum
3330
{
3431
primary,
@@ -82,7 +79,8 @@ public override void ExecuteCmdlet()
8279
DevicePathEnum path;
8380
if (Enum.TryParse(DevicePath, true, out path))
8481
{
85-
var arpTables = this.NetworkClient.NetworkManagementClient.ExpressRouteCircuits.ListArpTable(ResourceGroupName, ExpressRouteCircuitName, PeeringType, DevicePath).Value.Cast<object>().ToList();
82+
var arpTables = this.NetworkClient.NetworkManagementClient.ExpressRouteCircuits.ListArpTable
83+
(ResourceGroupName, ExpressRouteCircuitName, PeeringType, DevicePath).Value.Cast<object>().ToList();
8684
var psARPs = new List<PSExpressRouteCircuitArpTable>();
8785
foreach (var arpTable in arpTables)
8886
{

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/Stats/GetAzureExpressRouteCircuitRouteTableCommand.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@
1919
using Microsoft.Azure.Commands.Tags.Model;
2020
using Microsoft.Azure.Management.Network;
2121
using Microsoft.Azure.Commands.Network.Models;
22-
using MNM = Microsoft.Azure.Management.Network.Models;
22+
using MNM = Microsoft.Azure.Management.Network.Models;
23+
using System;
24+
using System.Linq;
25+
using AutoMapper;
2326

2427
namespace Microsoft.Azure.Commands.Network
2528
{
26-
using System;
27-
using System.Collections;
28-
using System.Linq;
29-
30-
using AutoMapper;
29+
3130

3231

3332

@@ -78,7 +77,8 @@ public override void ExecuteCmdlet()
7877
DevicePathEnum path;
7978
if (Enum.TryParse(DevicePath, true, out path))
8079
{
81-
var routeTables = this.NetworkClient.NetworkManagementClient.ExpressRouteCircuits.ListRoutesTable(ResourceGroupName, ExpressRouteCircuitName, PeeringType, DevicePath).Value.Cast<object>().ToList();
80+
var routeTables = this.NetworkClient.NetworkManagementClient.ExpressRouteCircuits.ListRoutesTable
81+
(ResourceGroupName, ExpressRouteCircuitName, PeeringType, DevicePath).Value.Cast<object>().ToList();
8282
var psRoutes = new List<PSExpressRouteCircuitRoutesTable>();
8383
foreach (var routeTable in routeTables)
8484
{

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/Stats/GetAzureExpressRouteCircuitRouteTableSummaryCommand.cs

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@
1212
// limitations under the License.
1313
//
1414

15-
using System.Collections;
16-
using System.Collections.Generic;
17-
using System.Management.Automation;
18-
using AutoMapper;
19-
using Microsoft.Azure.Commands.Tags.Model;
20-
using Microsoft.Azure.Management.Network;
21-
using Microsoft.Azure.Commands.Network.Models;
22-
using MNM = Microsoft.Azure.Management.Network.Models;
15+
using System.Collections;
16+
using System.Collections.Generic;
17+
using System.Management.Automation;
18+
using AutoMapper;
19+
using Microsoft.Azure.Commands.Tags.Model;
20+
using Microsoft.Azure.Management.Network;
21+
using Microsoft.Azure.Commands.Network.Models;
22+
using MNM = Microsoft.Azure.Management.Network.Models;
23+
using System;
24+
using System.Collections;
25+
using System.Linq;
26+
using AutoMapper;
2327

2428
namespace Microsoft.Azure.Commands.Network
2529
{
26-
using System;
27-
using System.Collections;
28-
using System.Linq;
2930

30-
using AutoMapper;
3131

3232
[Cmdlet(VerbsCommon.Get, "AzureRmExpressRouteCircuitRouteTableSummary"), OutputType(typeof(PSExpressRouteCircuitRoutesTableSummary))]
3333
public class GetAzureRmExpressRouteCircuitRouteTableSummaryCommand : NetworkBaseCmdlet
@@ -76,7 +76,8 @@ public override void ExecuteCmdlet()
7676
DevicePathEnum path;
7777
if (Enum.TryParse(DevicePath, true, out path))
7878
{
79-
var arpTables = this.NetworkClient.NetworkManagementClient.ExpressRouteCircuits.ListRoutesTableSummary(ResourceGroupName, ExpressRouteCircuitName, PeeringType, DevicePath).Value.Cast<object>().ToList();
79+
var arpTables = this.NetworkClient.NetworkManagementClient.ExpressRouteCircuits.ListRoutesTableSummary
80+
(ResourceGroupName, ExpressRouteCircuitName, PeeringType, DevicePath).Value.Cast<object>().ToList();
8081
var psARPs = new List<PSExpressRouteCircuitRoutesTableSummary>();
8182
foreach (var arpTable in arpTables)
8283
{

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/Stats/GetAzureExpressRouteStatsCommand.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313
//---------------------------------------------------------------------------------
14+
using System.Management.Automation;
15+
using AutoMapper;
16+
using Microsoft.Azure.Commands.Tags.Model;
17+
using Microsoft.Azure.Management.Network;
18+
using Microsoft.Azure.Commands.Network.Models;
19+
using MNM = Microsoft.Azure.Management.Network.Models;
1420

1521
namespace Microsoft.Azure.Commands.Network
16-
{
17-
using System.Management.Automation;
18-
using AutoMapper;
19-
using Microsoft.Azure.Commands.Tags.Model;
20-
using Microsoft.Azure.Management.Network;
21-
using Microsoft.Azure.Commands.Network.Models;
22-
using MNM = Microsoft.Azure.Management.Network.Models;
23-
22+
{
2423
[Cmdlet(VerbsCommon.Get, "AzureRmExpressRouteCircuitStats"), OutputType(typeof(PSExpressRouteCircuitStats))]
2524
public class GetAzureExpressRouteCircuitStatsCommand : NetworkBaseCmdlet
2625
{

0 commit comments

Comments
 (0)