Closed videlanicolas closed 1 year ago
An update on this bug. I've tried to setup with the deprecated 'addresses' but still not luck:
connection = {
'802-3-ethernet': {'mac-address': mac_address,
'mac-address-blacklist': a_blacklist},
'connection': {'autoconnect': True,
'id': 'myid',
'type': '802-3-ethernet',
'uuid': some_UUID},
'ipv6': {'method': 'shared'}
}
connection['ipv6']['addresses'] = dbus.Struct(
(
dbus.ByteArray(socket.inet_pton(socket.AF_INET6, 'fec0::1')),
dbus.UInt32(64),
dbus.ByteArray(socket.inet_pton(socket.AF_INET6, '::'))
), signature = 'ayuay')
It fails with the following message:
TypeError: 'dbus.UInt32' object is not iterable
So apparently is complaining that dbus.UInt32 is not an iterable, which is weird since I'm specifying the signature as being a single unsigned int (u). I'll keep on working on this and posting my results.
Closing all PR's and issues prior to archiving this repository.
Hey, trying to add an IPv6 connection like this:
But I'm getting the following:
ValueError: invalid literal for long() with base 10: 'fec0::1'
Can someone please tell me where is my mistake here? Thanks!