Fix the failure of calling GetSubTreePaths to get the path
Since upstream updated sdbusplus (sdbusplus: object: don't use 'bool'
argument constructor), now we can't get the newly added object path
through GetSubTreePaths/GetSubTree, so need to set action::defer_emit
to delay emitting object.
Tested:
busctl call xyz.openbmc_project.Network /xyz/openbmc_project/network xyz.openbmc_project.Network.VLAN.Create VLAN su eth0 100
busctl call xyz.openbmc_project.ObjectMapper /xyz/openbmc_project/object_mapper xyz.openbmc_project.ObjectMapper GetSubTreePaths sias /xyz/openbmc_project/network 0 2 xyz.openbmc_project.Network.VLAN xyz.openbmc_project.Network.EthernetInterface --verbose
MESSAGE "as" {
ARRAY "s" {
STRING "/xyz/openbmc_project/network/eth0";
STRING "/xyz/openbmc_project/network/eth0_100";
STRING "/xyz/openbmc_project/network/eth1";
};
};
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ia9bb76cb7b4944e25236509667a2706c178e8ab2
1 file changed