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]Bump to azure-mgmt-network 9.0.0 #11989

Closed
wants to merge 4 commits into from

Conversation

mmyyrroonn
Copy link
Contributor

@mmyyrroonn mmyyrroonn commented Jan 30, 2020

Fix #11988


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

  • 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.

@yonzhan
Copy link
Collaborator

yonzhan commented Jan 30, 2020

add to S165.

@@ -77,7 +77,9 @@ def list_express_route_circuits(cmd, resource_group_name=None):

def create_express_route_auth(cmd, resource_group_name, circuit_name, authorization_name):
client = network_client_factory(cmd.cli_ctx).express_route_circuit_authorizations
return client.create_or_update(resource_group_name, circuit_name, authorization_name)
ExpressRouteCircuitAuthorization = cmd.get_models('ExpressRouteCircuitAuthorization')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ExpressRouteCircuitAuthorization has two fields. I tried to expose these two in our command UX, however, during my test I cannot set any of them. The server will set both of two properties.

@@ -2510,7 +2512,7 @@ def update_private_endpoint_connection(cmd, resource_group_name, service_name, p
connection_state = PrivateLinkServiceConnectionState(
status=connection_status,
description=description,
action_required=action_required
actions_required=action_required
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the actual fix

@@ -122,9 +122,10 @@ def test_network_private_endpoints(self, resource_group):

pe_connection_name = self.cmd('network private-link-service show -g {rg} -n {lks1}').get_output_in_json()['privateEndpointConnections'][0]['name']
self.kwargs['pe_connect'] = pe_connection_name
self.cmd('network private-link-service connection update -g {rg} -n {pe_connect} --service-name {lks1} --connection-status Rejected')
self.cmd('network private-link-service connection update -g {rg} -n {pe_connect} --service-name {lks1} --connection-status Rejected --action-required "need action"')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the test

@haroldrandom
Copy link
Contributor

Need to upgrade other related commands' YAML recording?

@mmyyrroonn mmyyrroonn closed this Jan 30, 2020
@mmyyrroonn mmyyrroonn reopened this Jan 30, 2020
@mmyyrroonn
Copy link
Contributor Author

@haroldrandom I didn't bump the api-version. so I don't think we should re-run the test.

@haroldrandom
Copy link
Contributor

we

But azure-mgmt-network==9.0.0 use API string 2019-11-01 while azure-mgmt-network==7.0.0 use 2019-09-01, Doesn't it matter?

@mmyyrroonn
Copy link
Contributor Author

we

But azure-mgmt-network==9.0.0 use API string 2019-11-01 while azure-mgmt-network==7.0.0 use 2019-09-01, Doesn't it matter?

no. I'm still using 2019-09-01. I didn't bump the api-version

@mmyyrroonn
Copy link
Contributor Author

/azp run Run Automation Reduced Python 3.6

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@mmyyrroonn
Copy link
Contributor Author

/azp run Azure.azure-cli

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mmyyrroonn
Copy link
Contributor Author

/azp run Azure.azure-cli (Run Automation Reduced Python 3.8)

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@mmyyrroonn
Copy link
Contributor Author

/azp run Azure.azure-cli

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mmyyrroonn
Copy link
Contributor Author

/azp run Azure.azure-cli

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mmyyrroonn mmyyrroonn closed this Feb 3, 2020
@mmyyrroonn mmyyrroonn reopened this Feb 3, 2020
@mmyyrroonn mmyyrroonn closed this Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Network] Fix actions required for az network private-link-service connection update and bump to 9.0.0
3 participants