python-ifcfg icon indicating copy to clipboard operation
python-ifcfg copied to clipboard

RuntimeError: Tried to add ether multiple times

Open tonyle72 opened this issue 2 years ago • 1 comments

I'm getting the following error when polling interfaces via ifcfg:

Traceback (most recent call last):
  . . .
  File "/usr/local/lib/python3.8/dist-packages/ifcfg/__init__.py", line 70, in interfaces
    return Parser(ifconfig=ifconfig).interfaces
  File "/usr/local/lib/python3.8/dist-packages/ifcfg/parser.py", line 34, in __init__
    self.parse(self.ifconfig_data)
  File "/usr/local/lib/python3.8/dist-packages/ifcfg/parser.py", line 91, in parse
    raise RuntimeError(
RuntimeError: Tried to add ether=02:42:8d:9b:07:ec multiple times to docker0, it was already: 02:42:39:b2:29:bb

This may be related to issues #34 and #59 as it appears to be complaining about docker0's gateway:

$ ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        . . .
        ether 02:42:39:b2:29:bb  txqueuelen 0  (Ethernet)
        . . .

docker_gwbridge: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        . . .
        ether 02:42:8d:9b:07:ec  txqueuelen 0  (Ethernet)
        . . .

How to proceed?

tonyle72 avatar May 31 '23 20:05 tonyle72

Also encountering this issue with some users of https://github.com/donaldzou/WGDashboard

DaanSelen avatar Feb 06 '25 09:02 DaanSelen