Skip to content

Conversation

@jacobweinstock
Copy link
Member

Description

This enables creating VLAN interfaces based on the vlan_id= value in /proc/cmdline. No VLAN interface will be created if vlan_id= does not have a value.

Why is this needed

This enables trunk vlan support across the Tink stack. https://github.com/tinkerbell/proposals/blob/main/proposals/0030/README.md

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

This enables creating VLAN interfaces based
on the "vlan_id=" value in /proc/cmdline. No
VLAN interface will be created if "vlan_id=" does
not have a value.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
Boots send kernel command line parameter "ip=dhcp",
this causes the system to configure the network interface(s) with DHCP.
When an environment's network configuration has this machine connected a
trunked interface with a default/native VLAN, the interface will be configured
on the default/native VLAN because we haven't yet configured the VLAN interface.
Boots will respond to this DHCP request because in this scenario it is not
VLAN aware. Also in this scenario, the machine will end up being configured
with 2 default routes. To resolve this, we remove the default route and IP
that kernel added and let the dhcpcd handle setting the route.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
Copy link
Contributor

@thebsdbox thebsdbox left a comment

Choose a reason for hiding this comment

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

/lgtm

@jacobweinstock jacobweinstock added the ready-to-merge Signal to Mergify to merge the PR. label Oct 20, 2022
@jacobweinstock jacobweinstock removed the request for review from mmlb October 20, 2022 12:50
@mergify mergify bot merged commit c17ebc4 into tinkerbell:main Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Signal to Mergify to merge the PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants