Hi,

I've noticed 2 issues in the handling of the configuration file on Connman 1.36.

I have 2 ethernet devices at this device. I have not applied any
configuration so they default to DHCP on IPv4. Immutable is False for
both as expected.

I create a configuration file without a MAC address specified:

$ cat /var/lib/connman/010203040506.config
[service_config]
Type = ethernet
IPv4 = 192.168.1.107/255.255.255.0/192.168.1.1

After I commit this file both ethernet interfaces get the address
192.168.1.107 and they both display Immutable=True.

This could actually be expected, since I do not specify to which
interface I want my configuration to apply. But documentation says:

- MAC: MAC address of the interface where this setting should be applied.
The MAC address is optional and if it is missing, then the first found
interface is used.

So according to this the configuration should only apply to once interface.

The second issue happens when I remove /var/lib/connman/010203040506.config,

Connman at this time does not reset the interfaces to the default
configuration and instead they become unconfigured:

$ connmanctl services ethernet_(...1...)_cable
...
  State = idle
  Favorite = True
  Immutable = False
  AutoConnect = True
...
  IPv4 = [  ]
  IPv4.Configuration = [  ]
...
$ connmanctl services ethernet_(...2...)_cable
...
  State = idle
  Favorite = True
  Immutable = False
  AutoConnect = True
...
  IPv4 = [  ]
  IPv4.Configuration = [  ]
...

Thanks,
Nuno