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

nmstate / nmstate / 3297

Build:
DEFAULT BRANCH: master
Ran 06 Nov 2019 01:47PM UTC
Jobs 7
Files 374
Run time 20min
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

pending completion
3297

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)

32 of 32 new or added lines in 2 files covered. (100.0%)

23084 of 33803 relevant lines covered (68.29%)

0.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3297.1 (DOCKER_IMAGE=nmstate/fedora-nmstate-dev testflags="--test-type integ --pytest-args='-x'") 06 Nov 2019 02:07PM UTC 0
80.87
Travis Job 3297.1
2 3297.2 (DOCKER_IMAGE=nmstate/fedora-nmstate-dev testflags="--test-type format") 06 Nov 2019 01:47PM UTC 0
Travis Job 3297.2
3 3297.3 (DOCKER_IMAGE=nmstate/fedora-nmstate-dev testflags="--test-type lint") 06 Nov 2019 01:48PM UTC 0
Travis Job 3297.3
4 3297.4 (DOCKER_IMAGE=nmstate/fedora-nmstate-dev testflags="--test-type unit_py27") 06 Nov 2019 01:48PM UTC 0
66.55
Travis Job 3297.4
5 3297.5 (DOCKER_IMAGE=nmstate/fedora-nmstate-dev testflags="--test-type unit_py36") 06 Nov 2019 01:49PM UTC 0
66.32
Travis Job 3297.5
6 3297.6 (DOCKER_IMAGE=nmstate/fedora-nmstate-dev testflags="--test-type unit_py37") 06 Nov 2019 01:50PM UTC 0
66.32
Travis Job 3297.6
7 3297.7 (DOCKER_IMAGE=nmstate/centos7-nmstate-dev testflags="--test-type integ --pytest-args='-x'") 06 Nov 2019 01:57PM UTC 0
86.85
Travis Job 3297.7
Source Files on build 3297
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3297
  • 208eda34 on github
  • Prev Build on master (#3289)
  • Next Build on master (#3306)
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