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

Include VLAN interface and IP addresses in the network information #8618

Open
jennierose opened this issue Nov 18, 2022 · 2 comments
Open

Include VLAN interface and IP addresses in the network information #8618

jennierose opened this issue Nov 18, 2022 · 2 comments

Comments

@jennierose
Copy link

jennierose commented Nov 18, 2022

After connecting my Linode to a new VLAN at 10.0.0.1/24 and rebooting, I can see that the host has the correct IP address configured on eth1:

$ ip addr
1: lo: ...
    ...
2: eth0: ...
    ...
3: eth1: ...
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1/24 brd 10.0.0.255 scope global eth1
       valid_lft forever preferred_lft forever

I can see where that VLAN interface was configured under the "Configurations" tab, but 10.0.0.1 is not included among the IP Addresses in the "Network" tab. It shows me the public IPv4 and IPv6 addresses configured on eth0, plus a second link-local IPv6 address, but doesn't have any indication that there's a second network interface configured on the node.

Likewise, when I check the network information via the API:

$ curl -H "Authorization: Bearer $TOKEN" https://api.linode.com/v4/linode/instances/xxxxxxxx/ips | python3 -m json.tool
{
    "ipv4": {
        "public": [
            {
                "address": "(this is the only IP shown)",
                ...
            }
        ],
        "private": [],
        "shared": [],
        "reserved": []
    },
    ...
}

It has no information about the VLAN!

This is leading to a little bit of trouble trying to programmatically manage my hosts with the Linode Ansible Collection – I want to configure nodes to connect to one another using the VLAN, but it's not very straightforward trying to match a host to its 10.0.0.* address using the information that's currently readily available through the API, (I can get the configuration for eth1 with the /configs endpoint, but it's less than ideal & leaves me wondering why that info wasn't just included in the list of IPs in to begin with).

In short – are there any plans to include VLAN configs into the more general network info available in the API and web UI?

@Hik77
Copy link

Hik77 commented Nov 19, 2022 via email

@ashtarcommunications
Copy link

Also trying to manage a dynamic Ansible inventory and need VLAN IP info accessible via the API.

@jennierose did you end up coming up with a solution you were happy with?

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

No branches or pull requests

3 participants