• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nmstate / nmstate / 3297 / 6

Build:
DEFAULT BRANCH: master
Ran 06 Nov 2019 01:50PM UTC
Files 34
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Nov 2019 01:44PM UTC coverage: 66.32% (+0.4%) from 65.965%
DOCKER_IMAGE=nmstate/fedora-nmstate-dev testflags="--test-type unit_py37"

push

travis-ci

EdDev
schema: add linux bridge vlan filtering

The defined model allows for setting trunk and access ports.
Furthermore, it allows defining a native vlan on a trunk port.

It is possible to independently define the trunks/access vlans per
each port, and while NM / linux bridges allows it, at the moment,
we will not allow setting allowed vlans on the bridge port.
It will be hardcoded with the linux bridge default: having vlan id
1 as native.
Defining the schema of the uplink port will be done in a separate
PR.

This patch adds to the model:
  - a 'vlan' map to the bridge ports, that will hold a
    list trunk tag (that can be individual tags, or tag ranges), an
    access tag - to be used for access ports - and an 'enable-native'
    flag, intended to select one of the trunk tags as native vlan.

An example of a bridge configuration that allows for all vlans on a
trunk port:
- name: linux-br0
  type: linux-bridge
  state: up
  bridge:
    options:
      stp:
        enabled: true
    port:
      - name: eth1
        vlans:
          type: trunk
          trunk-tags:
            - id-range:
                min: 1
                max: 4095

An example of a bridge configuration with an access port:
- name: linux-br0
  type: linux-bridge
  state: up
  bridge:
    options:
      stp:
        enabled: true
    port:
      - name: eth1
        vlan:
          type: access
          tag: 101

An example of a bridge configuration having a port with a native vlan
trunk tag:
- name: linux-br0
  type: linux-bridge
  state: up
  bridge:
    options:
      stp:
        enabled: true
    port:
      - name: eth1
        vlan:
          type: trunk
          trunk-tags:
            - id: 101
            - id-range:
                min: 200
                max: 4095
          tag: 100
          enable-native: true

The bug that tracks the feature in NetworkManager can be found
at [0].

More information on this feature can be found in [1].

[0] - https://bugzilla.redhat.com/s... (continued)

2038 of 3073 relevant lines covered (66.32%)

0.66 hits per line

Source Files on job 3297.6 (DOCKER_IMAGE=nmstate/fedora-nmstate-dev testflags="--test-type unit_py37")
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2534
  • Travis Job 3297.6
  • 208eda34 on github
  • Prev Job for DOCKER_IMAGE=nmstate/fedora-nmstate-dev testflags="--test-type unit_py37" on master (#3289.6)
  • Next Job for DOCKER_IMAGE=nmstate/fedora-nmstate-dev testflags="--test-type unit_py37" on master (#3306.6)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc