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

jcronenberg / agama / 15134168953
63%

Build:
DEFAULT BRANCH: master
Ran 20 May 2025 09:51AM UTC
Jobs 3
Files 580
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.008% (-0.09%) from 63.1%
15134168953

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 %.

91 of 119 new or added lines in 7 files covered. (76.47%)

832 existing lines in 21 files now uncovered.

12909 of 20502 relevant lines covered (62.96%)

36.73 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
53.66
5.09% rust/agama-lib/src/network/store.rs
5
52.93
2.34% rust/agama-network/src/model.rs
5
0.0
0.0% rust/agama-network/src/nm/client.rs
8
48.57
5.09% rust/agama-server/src/network/web.rs
9
77.44
0.8% rust/agama-network/src/nm/dbus.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
71.43
0.0% rust/agama-lib/src/lib.rs
2
77.44
0.8% rust/agama-network/src/nm/dbus.rs
13
0.0
0.0% rust/agama-lib/src/progress.rs
14
70.27
0.0% rust/agama-server/src/l10n/web.rs
17
11.11
-2.53% rust/agama-lib/src/manager/http_client.rs
18
0.0
0.0% rust/agama-cli/src/config.rs
26
0.0
0.0% rust/agama-server/src/storage/web/iscsi/stream.rs
34
0.0
0.0% rust/agama-lib/src/manager.rs
35
48.57
5.09% rust/agama-server/src/network/web.rs
37
0.0
0.0% rust/agama-cli/src/progress.rs
40
0.0
0.0% rust/agama-server/src/users/web.rs
42
0.0
0.0% rust/agama-server/src/manager/web.rs
42
0.0
0.0% rust/agama-server/src/storage/web/iscsi.rs
46
0.0
0.0% rust/agama-server/src/web/common.rs
48
0.0
0.0% rust/agama-server/src/storage/web/dasd/stream.rs
54
0.0
0.0% rust/agama-server/src/storage/web/zfcp/stream.rs
60
0.0
0.0% rust/agama-server/src/storage/web.rs
62
0.0
0.0% rust/agama-cli/src/profile.rs
63
0.0
0.0% rust/agama-server/src/questions/web.rs
75
0.0
0.0% rust/agama-cli/src/lib.rs
102
0.0
0.0% rust/agama-server/src/software/web.rs
Jobs
ID Job ID Ran Files Coverage
3 rust - 15134168953.3 20 May 2025 09:51AM UTC 167
24.49
GitHub Action Run
3 web - 15134168940.3 20 May 2025 09:40AM UTC 36
82.3
GitHub Action Run
3 service - 15134168966.3 20 May 2025 09:42AM UTC 377
89.12
GitHub Action Run
Source Files on build 15134168953
  • Tree
  • List 580
  • 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 #15134168953
  • 29bbf0fc on github
  • Prev Build on master (#15134168966)
  • Next Build on master (#15206508733)
  • 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