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

jcronenberg / agama / 15134168940
63%

Build:
DEFAULT BRANCH: master
Ran 20 May 2025 09:40AM UTC
Jobs 3
Files 574
Run time 1min
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

20 May 2025 05:32AM UTC coverage: 63.028%. Remained the same
15134168940

push

github

web-flow
Add bridge support for the HTTP API and CLI (#2258)

## Problem

Although there is a bridge model in the backend, there is no way to
configure it through the CLI or through the HTTP api.

-
https://trello.com/c/LoDehu4m/4559-1-agama-add-support-for-configuring-a-bridge


## Solution

Added bridge support similar to what was added for bonding in
(https://github.com/agama-project/agama/pull/885) and also fix it
because looks like we broke the bonding handling when moved to the HTTP
Api (https://github.com/agama-project/agama/pull/1064).

An example of the json bridge configuration looks like:

```json
{
  "network": {
    "connections": [
      {
        "id": "Bridge0",
        "method4": "manual",
        "interface": "br0",
        "addresses": ["192.168.1.100/24"],
        "gateway4": "192.168.1.1",
        "nameservers": ["192.168.1.1"],
        "bridge": {
          "ports": ["eth0", "eth1"],
          "stp": false
        }
      }
    ]
  }
}
```

## Testing

- *Added a new unit test*
- *Tested manually*

92 of 132 branches covered (69.7%)

Branch coverage included in aggregate %.

59 of 89 new or added lines in 7 files covered. (66.29%)

482 existing lines in 9 files now uncovered.

12779 of 20289 relevant lines covered (62.98%)

36.32 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
50.6
0.0% rust/agama-network/src/model.rs
5
0.0
0.0% rust/agama-network/src/nm/client.rs
5
48.35
0.0% rust/agama-network/src/system.rs
7
76.64
0.0% rust/agama-network/src/nm/dbus.rs
9
43.48
0.0% rust/agama-server/src/network/web.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
62.5
0.0% rust/agama-network/src/settings.rs
1
0.0
0.0% rust/agama-server/src/web/docs/network.rs
3
48.57
0.0% rust/agama-lib/src/network/store.rs
5
0.0
0.0% rust/agama-lib/src/hostname/client.rs
40
43.48
0.0% rust/agama-server/src/network/web.rs
44
48.35
0.0% rust/agama-network/src/system.rs
47
0.0
0.0% rust/agama-network/src/nm/client.rs
112
76.64
0.0% rust/agama-network/src/nm/dbus.rs
229
50.6
0.0% rust/agama-network/src/model.rs
Jobs
ID Job ID Ran Files Coverage
3 web - 15134168940.3 20 May 2025 09:40AM UTC 36
82.3
GitHub Action Run
2 service - 15040562240.2 15 May 2025 08:46AM UTC 375
89.1
GitHub Action Run
3 rust - 15040562235.3 15 May 2025 08:54AM UTC 163
23.94
GitHub Action Run
Source Files on build 15134168940
  • Tree
  • List 574
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #15134168940
  • 29bbf0fc on github
  • Prev Build on master (#15040562235)
  • Next Build on master (#15134168966)
  • Delete
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