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

agama-project / agama / 15129658951
73%

Build:
DEFAULT BRANCH: master
Ran 20 May 2025 05:45AM 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.2%) from 62.83%
15129658951

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

3 existing lines in 2 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
1
48.57
5.09% rust/agama-server/src/network/web.rs
2
77.44
0.8% rust/agama-network/src/nm/dbus.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
3 rust 15129658951.3 20 May 2025 05:45AM UTC 167
24.49
GitHub Action Run
2 service 15105665303.2 19 May 2025 06:19AM UTC 377
89.12
GitHub Action Run
2 web 15115032911.2 19 May 2025 02:02PM UTC 36
82.3
GitHub Action Run
Source Files on build 15129658951
  • Tree
  • List 580
  • Changed 11
  • Source Changed 11
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #15129658951
  • 29bbf0fc on github
  • Prev Build on master (#15115559564)
  • Next Build on master (#15184988173)
  • 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