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

jcronenberg / agama / 15134168966
63%

Build:
DEFAULT BRANCH: master
Ran 20 May 2025 09:43AM UTC
Jobs 3
Files 576
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.1% (+0.07%) from 63.028%
15134168966

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

521 existing lines in 14 files now uncovered.

12824 of 20337 relevant lines covered (63.06%)

37.02 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
1
92.86
0.0% service/lib/agama/storage/config_solvers/base.rb
1
98.85
0.03% service/lib/y2storage/agama_proposal.rb
3
48.57
0.0% rust/agama-lib/src/network/store.rs
3
97.76
0.0% service/lib/agama/storage/proposal.rb
3
86.96
-2.7% service/lib/agama/storage/proposal_strategies/base.rb
5
0.0
0.0% rust/agama-lib/src/hostname/client.rs
31
75.81
0.0% service/lib/agama/dbus/storage/manager.rb
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 service - 15134168966.3 20 May 2025 09:42AM UTC 377
89.12
GitHub Action Run
3 rust - 15040562235.3 15 May 2025 08:54AM UTC 163
23.94
GitHub Action Run
3 web - 15134168940.3 20 May 2025 09:40AM UTC 36
82.3
GitHub Action Run
Source Files on build 15134168966
  • Tree
  • List 576
  • 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 #15134168966
  • 29bbf0fc on github
  • Prev Build on master (#15134168940)
  • Next Build on master (#15134168953)
  • 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