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

Add contextualization options for allowing 'Q in Q' openvswitch networks #59

Open
brodriguez-opennebula opened this issue Feb 13, 2024 · 0 comments
Assignees
Labels
category: context linux Linux OS contextualization packages status: accepted The issue is valid and will be planned for fix or implementation type: feature A new feature planned for implementation

Comments

@brodriguez-opennebula
Copy link
Contributor

brodriguez-opennebula commented Feb 13, 2024

When openvswitch is configured to set up Q in Q, the network interfaces of the VMs need to be configured as a regular VLAN interface. This can be overridden with some tricks in the context of the VM, for instance setting up a variable composed with at tuple interface, VLAN id, IP address, netmask separated by ;

VLAN_IFACES="eth1,120,10.120.1.5,24;eth1,130,10.130.1.5,24"

And then modifying the init script, with

source /var/run/one-context/context.sh.local

for vlan_info in $(echo $VLAN_IFACES | tr ";" "\n"); do 
  IFS=, read -r iface vlan addr mask <<< $vlan_info; 
  ip link add link $iface name $iface.$vlan type vlan id $vlan; 
  ip addr add $addr/$mask dev $iface.$vlan; 
  ip link set dev $iface.$vlan up;  
done

Anyways, this could be a bit less tricky if it was set as a contextualization option

@rsmontero rsmontero added type: feature A new feature planned for implementation category: context linux Linux OS contextualization packages status: accepted The issue is valid and will be planned for fix or implementation labels Feb 19, 2024
@rsmontero rsmontero added this to the Release 6.8.3 milestone Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: context linux Linux OS contextualization packages status: accepted The issue is valid and will be planned for fix or implementation type: feature A new feature planned for implementation
Projects
None yet
Development

No branches or pull requests

2 participants