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

linux-system-roles / network / 1244 / 1
42%
main: 42%

Build:
DEFAULT BRANCH: main
Ran 19 Nov 2020 11:00AM UTC
Files 13
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

19 Nov 2020 10:58AM UTC coverage: 39.255% (-1.3%) from 40.507%
LSR_ANSIBLES='ansible==2.7.* ansible==2.8.* ansible==2.9.*' LSR_MSCENARIOS='default'

push

travis-ci-com

cathay4t
nm provider: Refactor the down action of network connection

When deactivating a profile in libNM, we should:

 * Check `NM.ActionConnection` existence
 * Check `NM.ActionConnection.props.state` not DEACTIVATED
 * Use signal `state-changed` of `NM.ActionConnection`.
 * Only invoke `NM.Client.deactivate_connection_async()` if not
   in DEACTIVATING state.
 * Ignore `NM.ManagerError.CONNECTIONNOTACTIVE` error.

This patch also introduced a new class `NetworkManagerProvider`
in `module_utils/network_lsr/nm`:

 * Independent from Ansible but need to use absolute import due to
   limitation of ansible 2.8.
 * Provide sync function wrapping async calls of libNM.
 * Use stable logging method of python.
 * Only load this module when provider is nm.

This patch also changed how logging is handling in
`Cmd_nm.run_action_down()` as initial step on isolate ansible log
mechanism from provider module.

By moving provider codes to `module_utils` folder, we can eventually
simplify the bloated `library/network_connections.py`.

Signed-off-by: Gris Ge <fge@redhat.com>

948 of 2415 relevant lines covered (39.25%)

0.39 hits per line

Source Files on job 1244.1 (LSR_ANSIBLES='ansible==2.7.* ansible==2.8.* ansible==2.9.*' LSR_MSCENARIOS='default')
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1159
  • Travis Job 1244.1
  • c4643e56 on github
  • Prev Job for LSR_ANSIBLES='ansible==2.7.* ansible==2.8.* ansible==2.9.*' LSR_MSCENARIOS='default' on main (#1229.1)
  • Next Job for LSR_ANSIBLES='ansible==2.7.* ansible==2.8.* ansible==2.9.*' LSR_MSCENARIOS='default' on main (#1254.1)
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