Hello,
Recently I've been trying nmstate in a server with an infiniband interface and I've found the following error.
[root@zeus08 nmstate]# nmstatectl show Traceback (most recent call last): File "/usr/local/bin/nmstatectl", line 11, in <module> load_entry_point('nmstate==0.2.1', 'console_scripts', 'nmstatectl')() File "/usr/local/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 59, in main return args.func(args) File "/usr/local/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 203, in show state = _filter_state(libnmstate.show(), args.only) File "/usr/local/lib/python3.6/site-packages/libnmstate/netinfo.py", line 71, in show validator.validate(report) File "/usr/local/lib/python3.6/site-packages/libnmstate/validator.py", line 56, in validate js.validate(data, validation_schema) File "/usr/local/lib/python3.6/site-packages/jsonschema/validators.py", line 934, in validate raise error jsonschema.exceptions.ValidationError: '80:00:02:08:FE:80:00:00:00:00:00:00:F4:52:14:03:00:61:AA:91' does not match '^([a-fA-F0-9]{2}:){5}[a-fA-F0-9]{2}$'
Failed validating 'pattern' in schema['properties']['interfaces']['items']['allOf'][0]['properties']['mac-address']: {'pattern': '^([a-fA-F0-9]{2}:){5}[a-fA-F0-9]{2}$', 'type': 'string'}
On instance['interfaces'][10]['mac-address']: '80:00:02:08:FE:80:00:00:00:00:00:00:F4:52:14:03:00:61:AA:91'
It seems that MAC pattern is not working for this MAC address. Here is the "ip" output for this interface.
8: ib0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 4092 qdisc fq_codel state DOWN group default qlen 256 link/infiniband 80:00:02:08:fe:80:00:00:00:00:00:00:f4:52:14:03:00:61:aa:91 brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff
Should I open a card for this? What do you think?
Thanks, Fernando.
On Thu, Dec 05, 2019 at 12:53:04PM +0100, Fernando Fernandez Mancera wrote:
Hello,
Should I open a card for this? What do you think?
Please do.
In linux kernel, 'include/uapi/linux/netdevice.h' defined the max length of MAC address is MAX_ADDR_LEN 32 char/u8 and allows net device driver to the MAC address via `net_device_ops.ndo_set_mac_address`.
So 64 hex chars is the max you might get.
nmstate-devel@lists.fedorahosted.org