ipmid: channel: add match function to reset config on network changes

The IPMID load the channel config once at startup and will fail to pick
up any network interfaces added after that. Added a dbus matching
function again `xyz.openbmc_project.Network` to detect new networks and
reload the Channel Configs.

Teseted:
The network information via IPMI is populated correctly. The information
before the change is empty since ipmid parse the information before it
is ready on the system.

```
$ uptime
 00:02:42  up   0:02,  0 users,  load average: 9.38, 4.96, 1.92
$  ipmitool lan6 print 11
Getting parameter(s)...
IPv6/IPv4 Support:
    IPv6 only: no
    IPv4 and IPv6: yes
    IPv6 Destination Addresses for LAN alerting: yes
IPv6/IPv4 Addressing Enables: both
IPv6 Status:
    Static address max:  15
    Dynamic address max: 15
    SLAAC support:       yes
...
```

Change-Id: I6478cea3642c524e55a9dbc96c3deaca90feb089
Signed-off-by: Willy Tu <wltu@google.com>
1 file changed