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

agama-project / agama / 15820339826 / 1 – rust
74%
master: 74%

Build:
DEFAULT BRANCH: master
Ran 23 Jun 2025 09:23AM UTC
Files 119
Run time 5s
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

23 Jun 2025 09:20AM UTC coverage: 1.297%. First build
rust – 15820339826.1

push

github

web-flow
Add support to bind a connection to an specific mac-address (bsc#1244259) (#2472)

## Problem

In an Agama profile it is possible to bind a connection to an specific
device using its interface name but it is not possible to use the mac
address, that option is only supported by the kernel cmdline or using
nmcli directly. The profile allows to set a mac address but that is the
assign-mac-address instead of the mac-address attribute.

At least the Agama profile should support it.

In the UI there is no option to bind a connection to an specific device
and this specially problematic with the default.

- https://bugzilla.suse.com/show_bug.cgi?id=1244259
-
https://trello.com/c/yt0Xd9ah/1663-1244259-unable-to-bind-a-specific-mac-address-to-a-connection?search_id=a1d25067-f7fc-40ec-b829-0d278f9836b0

## Solution

Modify the schema renaming the mac address assignation attribute to
customMacAddress and using the macAddress to bind the connection to an
specific mac.

```json
{
  "network": {
    "connections": [
      {
        "id": "eth0",
        "method4": "auto",
        "method6": "auto",
        "ignoreAutoDns": false,
        "interface": "eth0",
        "macAddress": "A0:CE:C8:F2:F7:CA",
        "status": "up",
        "autoconnect": true,
        "persistent": true
      }
    ]
  }
}
```

There was not possible to delete optional attributes from NetworkManager
like the **interface-name** or the **macAddress** using Optional values
because if set already the merge will use the one which is present, that
has been fixed for these two attributes allowing to switch between them
although the solution should be extended to other cases.

Example (should unset the **mac-address** as it is not declared in the
first example and the **interface-name** in the second):

```json
{
  "network": {
    "connections": [
      {
        "id": "eth0",
        "method4": "auto",
        "method6": "auto",
        "ignoreAutoDns": false,
        "interface": "eth0",
       ... (continued)

71 of 5473 relevant lines covered (1.3%)

0.02 hits per line

Source Files on job rust - 15820339826.1
  • Tree
  • List 119
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 15820339826
  • 9b63cccc on github
  • Prev Job for on master (#15818031836.)
  • Next Job for on master (#15820730866.)
  • 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