Skip to content

intf.vlan.native not always set #2032

@jbemmel

Description

@jbemmel

elif not intf.vlan.native in node_trunk: # ... native VLAN not in trunk, that's not valid

should be

node_native = get_effective_module_attribute('vlan.native',intf=intf,link=link)
if node_native:                                         # Does this node use native VLAN?
  if not node_trunk:                                    # ... no trunk data for this node, cannot use native VLAN
    log.error(
      f'Node {intf.node} is using native VLAN without VLAN trunk\n... {link}',
      log.IncorrectValue,
      'vlan')
  elif node_native not in node_trunk:                   # ... native VLAN not in trunk, that's not valid

in case the native vlan is set on the trunk, but not on the interface

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions