Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 #207 Change-Id: If1d2bcfb9e3ab79e02ebf78682e3ac5638c18b0c Signed-off-by: Chanh Nguyen <[email protected]>
- Loading branch information