public override void Execute() { base.Execute(); var virtualHubRoute = new PSVirtualHubRoute { AddressPrefixes = this.AddressPrefix?.ToList(), NextHopIpAddress = this.NextHopIpAddress }; WriteObject(virtualHubRoute); }
public override void Execute() { base.Execute(); var virtualHubRoute = new PSVirtualHubRoute { Destinations = this.Destination?.ToList(), DestinationType = this.DestinationType, NextHops = this.NextHop?.ToList(), NextHopType = this.NextHopType }; WriteObject(virtualHubRoute); }
public override void Execute() { base.Execute(); var virtualHubRoute = new PSVirtualHubRoute { AddressPrefixes = this.AddressPrefix?.ToList(), NextHopIpAddress = this.NextHopIpAddress, DestinationType = "CIDR", NextHopType = "IPAddress" }; WriteObject(virtualHubRoute); }