Skip to content

[Network] Convert network creates to use SDK#2371

Merged
tjprescott merged 9 commits intoAzure:masterfrom
tjprescott:ConvertNetworkCreates
Mar 3, 2017
Merged

[Network] Convert network creates to use SDK#2371
tjprescott merged 9 commits intoAzure:masterfrom
tjprescott:ConvertNetworkCreates

Conversation

@tjprescott
Copy link
Copy Markdown
Member

@tjprescott tjprescott commented Mar 3, 2017

Converts the following network creates from the old "fat client" implementation to simply use the SDK:

  • Express Route circuit
  • Local Gateway
  • NIC
  • NSG
  • Traffic Manager profile
  • VNET Gateway

@tjprescott tjprescott requested a review from yugangw-msft March 3, 2017 18:55
@tjprescott tjprescott added this to the Sprint 13 milestone Mar 3, 2017
@tjprescott tjprescott added the Network az network vnet/lb/nic/dns/etc... label Mar 3, 2017
@codecov-io
Copy link
Copy Markdown

codecov-io commented Mar 3, 2017

Codecov Report

Merging #2371 into master will decrease coverage by -0.69%.
The diff coverage is 79.5%.

@@            Coverage Diff             @@
##           master    #2371      +/-   ##
==========================================
- Coverage   72.93%   72.24%   -0.69%     
==========================================
  Files         425      323     -102     
  Lines       19310    18086    -1224     
  Branches     2741     2650      -91     
==========================================
- Hits        14083    13067    -1016     
+ Misses       4323     4196     -127     
+ Partials      904      823      -81
Impacted Files Coverage Δ
...ure/cli/command_modules/network/_client_factory.py 95.71% <ø> (-1.1%)
...work/azure/cli/command_modules/network/commands.py 98.97% <100%> (ø)
...twork/azure/cli/command_modules/network/_params.py 92.36% <100%> (-0.15%)
...twork/azure/cli/command_modules/network/_format.py 41.33% <52.94%> (+3.4%)
...etwork/azure/cli/command_modules/network/custom.py 61.73% <77.77%> (+1.01%)
...k/azure/cli/command_modules/network/_validators.py 64.24% <80%> (+0.87%)
...li-core/azure/cli/core/commands/template_create.py 37.98% <0%> (-4.66%)
...dback/azure/cli/command_modules/feedback/custom.py 34.69% <0%> (ø)
src/azure-cli-core/azure/cli/core/_util.py 65.51% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c6edf8...77d06f2. Read the comment docs.

register_cli_argument('network nic create', 'network_interface_name', nic_type, options_list=('--name', '-n'), id_part=None, validator=process_nic_create_namespace)
register_cli_argument('network nic create', 'private_ip_address_allocation', ignore_type)
register_cli_argument('network nic create', 'use_dns_settings', ignore_type)
register_cli_argument('network nic create', 'private_ip_address_version', help='The private IP address version to use.')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume we will still have the choices ['ipv4', 'ipv6'] for this arg

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

ns.create_client_configuration = any(ns.address_prefixes or [])
if ns.enable_bgp and not ns.asn:
validate_location(ns)
enable_bgp = any([ns.asn or ns.bgp_peering_address or ns.peer_weight])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the any is not being used, rather it should be any([ns.asn, ns.bgp_peering_address, ns.peer_weight])?

@tjprescott tjprescott merged commit 7bb18e0 into Azure:master Mar 3, 2017
@tjprescott tjprescott deleted the ConvertNetworkCreates branch March 3, 2017 23:06
@haroldrandom haroldrandom added cla-not-required Network az network vnet/lb/nic/dns/etc... labels Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-not-required Network az network vnet/lb/nic/dns/etc...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants