-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[network] az network express-route port link update: Add --macsec-sci-state argument.
#18814
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
Merged
kairu-ms
merged 4 commits into
Azure:dev
from
kairu-ms:network-feature-18707-express-route-link-sci-state-support
Jul 28, 2021
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,7 +62,7 @@ def load_arguments(self, _): | |
| IPVersion, LoadBalancerSkuName, LoadDistribution, ProbeProtocol, ProcessorArchitecture, Protocol, PublicIPAddressSkuName, PublicIPAddressSkuTier, | ||
| RouteNextHopType, SecurityRuleAccess, SecurityRuleProtocol, SecurityRuleDirection, TransportProtocol, | ||
| VirtualNetworkGatewaySkuName, VirtualNetworkGatewayType, VpnClientProtocol, VpnType, | ||
| ExpressRouteLinkMacSecCipher, ExpressRouteLinkAdminState, | ||
| ExpressRouteLinkMacSecCipher, | ||
| ConnectionMonitorEndpointFilterType, ConnectionMonitorTestConfigurationProtocol, | ||
| PreferredIPVersion, HTTPConfigurationMethod, OutputType, DestinationPortBehavior, CoverageLevel, EndpointType, GatewayLoadBalancerTunnelProtocol, | ||
| GatewayLoadBalancerTunnelInterfaceType, VpnNatRuleType, VpnNatRuleMode) = self.get_models( | ||
|
|
@@ -74,7 +74,7 @@ def load_arguments(self, _): | |
| 'IPVersion', 'LoadBalancerSkuName', 'LoadDistribution', 'ProbeProtocol', 'ProcessorArchitecture', 'Protocol', 'PublicIPAddressSkuName', 'PublicIPAddressSkuTier', | ||
| 'RouteNextHopType', 'SecurityRuleAccess', 'SecurityRuleProtocol', 'SecurityRuleDirection', 'TransportProtocol', | ||
| 'VirtualNetworkGatewaySkuName', 'VirtualNetworkGatewayType', 'VpnClientProtocol', 'VpnType', | ||
| 'ExpressRouteLinkMacSecCipher', 'ExpressRouteLinkAdminState', | ||
| 'ExpressRouteLinkMacSecCipher', | ||
| 'ConnectionMonitorEndpointFilterType', 'ConnectionMonitorTestConfigurationProtocol', | ||
| 'PreferredIPVersion', 'HTTPConfigurationMethod', 'OutputType', 'DestinationPortBehavior', 'CoverageLevel', 'EndpointType', 'GatewayLoadBalancerTunnelProtocol', | ||
| 'GatewayLoadBalancerTunnelInterfaceType', 'VpnNatRuleType', 'VpnNatRuleMode') | ||
|
|
@@ -107,7 +107,6 @@ def load_arguments(self, _): | |
| ag_servers_type = CLIArgumentType(nargs='+', help='Space-separated list of IP addresses or DNS names corresponding to backend servers.', validator=get_servers_validator()) | ||
| app_gateway_name_type = CLIArgumentType(help='Name of the application gateway.', options_list='--gateway-name', completer=get_resource_name_completion_list('Microsoft.Network/applicationGateways'), id_part='name') | ||
| express_route_link_macsec_cipher_type = CLIArgumentType(get_enum_type(ExpressRouteLinkMacSecCipher)) | ||
| express_route_link_admin_state_type = CLIArgumentType(get_enum_type(ExpressRouteLinkAdminState)) | ||
| zone_compatible_type = CLIArgumentType( | ||
| options_list=['--zone', '-z'], | ||
| nargs='+', | ||
|
|
@@ -848,7 +847,7 @@ def load_arguments(self, _): | |
|
|
||
| with self.argument_context('network express-route port link update', min_api='2019-08-01') as c: | ||
| c.argument('admin_state', | ||
| arg_type=express_route_link_admin_state_type, | ||
| arg_type=get_three_state_flag(positive_label='Enabled', negative_label='Disabled', return_label=True), | ||
| help='Enable/Disable administrative state of an ExpressRoute Link') | ||
|
|
||
| with self.argument_context('network express-route port link update', arg_group='MACsec', min_api='2019-08-01') as c: | ||
|
|
@@ -857,6 +856,7 @@ def load_arguments(self, _): | |
| c.argument('macsec_ckn_secret_identifier', | ||
| help='The connectivity key name (CKN) that stored in the KeyVault.') | ||
| c.argument('macsec_cipher', arg_type=express_route_link_macsec_cipher_type, help='Cipher Method') | ||
| c.argument('macsec_sci_state', arg_type=get_three_state_flag(positive_label='Enabled', negative_label='Disabled', return_label=True), help='Sci mode', min_api='2020-06-01') | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this type the same as |
||
|
|
||
| with self.argument_context('network express-route port location', min_api='2018-08-01') as c: | ||
| c.argument('location_name', options_list=['--location', '-l']) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.