Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Network] Improve NSG rule table output format #6184

Merged
merged 1 commit into from
Apr 23, 2018
Merged

[Network] Improve NSG rule table output format #6184

merged 1 commit into from
Apr 23, 2018

Conversation

tjprescott
Copy link
Member

Fixes #6031.

Also closes ICM ticket:
https://icm.ad.msft.net/imp/v3/incidents/details/65053548/home


This checklist is used to make sure that common guidelines for a pull request are followed.

  • [N/A] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

  • I adhere to the Command Guidelines.

@tjprescott tjprescott added Network az network vnet/lb/nic/dns/etc... Output labels Apr 23, 2018
@tjprescott tjprescott added this to the Sprint 36 (Build) milestone Apr 23, 2018
@tjprescott tjprescott requested a review from yugangw-msft April 23, 2018 17:25
@promptws
Copy link

View a preview at https://prompt.ws/r/Azure/azure-cli/6184
This is an experimental preview for @microsoft users.

@tjprescott tjprescott changed the title Improve NSG rule table output format [Network] Improve NSG rule table output format Apr 23, 2018
item['Priority'] = result['priority']
item['SourcePortRanges'] = result['sourcePortRange'] or ' '.join(result['sourcePortRanges'])
item['SourceAddressPrefixes'] = result['sourceAddressPrefix'] or ' '.join(result['sourceAddressPrefixes'])
item['SourceASG'] = result['sourceApplicationSecurityGroups'] or 'None'
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume returning a string 'None' is the pattern for output, instead of a plain None to be serialized as null eventually

Copy link
Contributor

@yugangw-msft yugangw-msft Apr 23, 2018

Choose a reason for hiding this comment

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

I think i got it now, that using the string 'None' would preventing the column from missing if the value is None

@tjprescott tjprescott merged commit d859a0a into Azure:dev Apr 23, 2018
@tjprescott tjprescott deleted the FixNSGTableOutput branch April 23, 2018 18:23
@haroldrandom haroldrandom added Network az network vnet/lb/nic/dns/etc... Output labels Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Network az network vnet/lb/nic/dns/etc... Output
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Network] NSG rule list table does not include prefixes/ranges
4 participants