commit | 8bd9a9bca9ab028abbef0996fcbeb071bca2c0ff | [log] [tgz] |
---|---|---|
author | Chanh Nguyen <chanh@os.amperecomputing.com> | Fri Nov 08 09:08:56 2024 +0000 |
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | Fri Nov 15 23:02:50 2024 +0000 |
tree | 73babdb7ab661f6ffda6a5097a3fec3a9df40c22 | |
parent | 402024a82c592e26691f09f87f5dffbd0fc0e6c3 [diff] |
transporthandler: Synchronous get IP address and IP address source In case both DHCP and static IP addresses are assigned, the IPMI code just returns one of them. The IPMI code always returns the first object dbus on the interface by the fixed index, which is always 0. That may cause a mismatch between the IP address and IP address source. This patch will check if the DHCP or static mode is enabling, then return the IP address accordingly. Tested: 1. Change to static source ipmitool lan set 1 ipsrc static 2. Set a static IP address. ipmitool lan set 1 ipaddr xx.xx.xx.xx 3. Back to DHCP source ipmitool lan set 1 ipsrc dhcp 4. Check the IP Lan print. Expect the IP address and IP source address report accordingly. ipmitool lan print 1 Fixes openbmc/phosphor-host-ipmid#207 Change-Id: If1d2bcfb9e3ab79e02ebf78682e3ac5638c18b0c Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in ipmid/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage