-
Notifications
You must be signed in to change notification settings - Fork 816
Hyper-V API: Use HcnQueryEndpointProperties for retrieving VM's IP address #5097
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
Open
xmkg
wants to merge
17
commits into
main
Choose a base branch
from
enhancement/hyperv-vm-use-hcn-api-for-ip-retrieval
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
647ccef
[hyperv-hcn] Implement query_endpoint function
xmkg 44976aa
[hcs-vm] Use HCN ep query for management_ipv4
xmkg e66658b
[hyperv-hcs] Use management_ip for ssh_hostname
xmkg 996c29c
[hyperv-hcs] Add it/bb tests for IP
xmkg a42254d
[hyperv-hcn] Simplify query_endpoint impl
xmkg 016f3c9
[hyperv-hcn] Format changes
xmkg d7249a2
[win] Add permanent_ipv4_neighbor helper
xmkg ea68ccf
[hyperv-hcn] Pull MAC from endpoint info
xmkg 1b94879
[win] Use singleton for network_utils
xmkg e7e7611
[tests-bb] Verify permanent_ipv4_neighbor
xmkg 766a6ff
[hyperv-tests] Add tests exercising HCN path
xmkg f931e77
[hcs-vm] Simplify management_ipv4
xmkg 14c1759
[ip-address] Stricter IP address parsing
xmkg 50ea88f
[hyperv-hcn] Simplify code
xmkg 3c9be08
[hyperv-hcn] Format code changes
xmkg f780366
[hyperv-hcn] Revert test change
xmkg a426330
[hyperv-test-bb] Reintroduce empty vm test
xmkg 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
29 changes: 29 additions & 0 deletions
29
src/platform/backends/hyperv_api/hcn/hyperv_hcn_endpoint_info.h
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 |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| /* | ||
| * Copyright (C) Canonical, Ltd. | ||
| * | ||
| * This program is free software; you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation; version 3. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| * | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| #include <string> | ||
| #include <vector> | ||
|
|
||
| namespace multipass::hyperv::hcn | ||
| { | ||
| struct HcnEndpointInfo | ||
| { | ||
| std::vector<std::string> ip_addresses; | ||
| }; | ||
| } // namespace multipass::hyperv::hcn |
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.
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.