Skip to content

Commit

Permalink
Allow to use switch NI ports as VLAN access ports
Browse files Browse the repository at this point in the history
The main use-case of switch NI with multiple ports is not actually to
bridge multiple L2 switches for redundancy and run STP to avoid loops,
but to allow connecting external end devices (e.g. sensors) directly
into the same L2 segment as the applications running on the edge node.
With VLAN-enabled Switch NI, the user should be able to use a physical
network port attached to Switch NI as a VLAN access port (by default
all switch NI ports are configured as trunks).

Signed-off-by: Milan Lenco <milan@zededa.com>
  • Loading branch information
milan-zededa committed Aug 13, 2024
1 parent 106b1d6 commit 59db9e3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions proto/config/netinst.proto
Original file line number Diff line number Diff line change
Expand Up @@ -310,4 +310,21 @@ message NetworkInstanceConfig {
// Depending on the implementation, it may also introduce additional packet processing
// overhead.
bool disable_flowlog = 50;

// VLAN access ports configured for a switch network instance.
// For other types of network instances, this option is ignored.
// This setting applies to physical network ports attached to the network instance.
// VLAN configuration for application interfaces is applied separately via AppInstanceConfig
// (see NetworkAdapter.access_vlan_id).
repeated VlanAccessPort vlan_access_ports = 51;
}

// VLAN Access Port config applied to physical port(s) attached to a Switch Network Instance.
message VlanAccessPort {
// VLAN ID from the range <1,4094>
uint32 vlan_id = 1;
// Physical network adapter used as the access port for the given VLAN.
// Either a single NI port referenced by its name (SystemAdapter.Name, aka logical label)
// or an adapter shared-label matching zero or more NI ports.
string access_port = 2;
}

0 comments on commit 59db9e3

Please sign in to comment.