Skip to content

Network v2: add listDHCPNetworks for agents extension#1686

Merged
jtopjian merged 1 commit intogophercloud:masterfrom
sapcc:dhcp_network_scheduled
Sep 2, 2019
Merged

Network v2: add listDHCPNetworks for agents extension#1686
jtopjian merged 1 commit intogophercloud:masterfrom
sapcc:dhcp_network_scheduled

Conversation

@notandy
Copy link
Copy Markdown
Contributor

@notandy notandy commented Aug 30, 2019

this add the listDHCPNetworks call for agents, enabling them
to fetch a list of networks scheduled to a specific agent.

Prior to starting a PR, please make sure you have read our
contributor tutorial.

Prior to a PR being reviewed, there needs to be a Github issue that the PR
addresses. Replace the brackets and text below with that issue number.

For #1389

Links to the line numbers/files in the OpenStack source code that support the
code in this PR:
https://github.com/openstack/neutron/blob/76754e06f56a7a9e4c23bef6a6e0e340e4110fa8/neutron/db/agentschedulers_db.py#L433-L443
https://docs.openstack.org/api-ref/network/v2/?expanded=list-networks-hosted-by-a-dhcp-agent-detail#list-networks-hosted-by-a-dhcp-agent

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 30, 2019

Coverage Status

Coverage increased (+0.02%) to 76.776% when pulling bb4f6fb on sapcc:dhcp_network_scheduled into aa85070 on gophercloud:master.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Aug 30, 2019

Build failed.

Copy link
Copy Markdown
Contributor

@jtopjian jtopjian left a comment

Choose a reason for hiding this comment

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

@notandy Thank you for submitting this.

In addition to the one review comment, please change occurrences of Dhcp to DHCP. Occurrences of dhcp should stay as dhcp.

Also, when implementing an API call, we need to see the actual Python code that implements the server-side action, not just the API docs. In this case, the relevant code is: https://github.com/openstack/neutron/blob/76754e06f56a7a9e4c23bef6a6e0e340e4110fa8/neutron/db/agentschedulers_db.py#L433-L443

Please let me know if you have any questions.

@notandy notandy force-pushed the dhcp_network_scheduled branch 2 times, most recently from 9f2bfe8 to 8a46546 Compare September 2, 2019 08:07
this adds the listDHCPNetworks call for agents, that fetches
a list of networks scheduled to a specific agent.
@notandy notandy force-pushed the dhcp_network_scheduled branch from 8a46546 to bb4f6fb Compare September 2, 2019 08:08
@notandy notandy changed the title Network v2: add listDhcpNetworks for agents extension Network v2: add listDHCPNetworks for agents extension Sep 2, 2019
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Sep 2, 2019

Build failed.

Copy link
Copy Markdown
Contributor

@jtopjian jtopjian left a comment

Choose a reason for hiding this comment

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

LGTM - thank you!

@jtopjian jtopjian merged commit 42e94bf into gophercloud:master Sep 2, 2019
@notandy notandy deleted the dhcp_network_scheduled branch September 2, 2019 16:42
@huangtianhua
Copy link
Copy Markdown
Contributor

recheck

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Sep 3, 2019

Build succeeded.

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.

4 participants