blob: e119d4a20dccf9fa85d0c6ad020e68d7bf0763dc [file] [log] [blame]
#ifndef THIRD_PARTY_MILOTIC_EXTERNAL_CC_TLBMC_REDFISH_DATA_STABLE_ID_H_
#define THIRD_PARTY_MILOTIC_EXTERNAL_CC_TLBMC_REDFISH_DATA_STABLE_ID_H_
#include <string>
#include "topology_config.pb.h"
#include "stable_id.pb.h"
#include "resource.pb.h"
namespace milotic_tlbmc {
// Machine local devpaths always begin with "/phys".
// Any devpath that has a RootChassisLocationCode should be replaced with
// "/phys/"
std::string GetNodeLocalDevpath(const std::string& devpath,
const std::string& root_chassis_location_code);
// Returns the stable id from LocationContext.
StableId GetStableId(const TopologyConfigNode& topology_config_node);
} // namespace milotic_tlbmc
#endif // THIRD_PARTY_MILOTIC_EXTERNAL_CC_TLBMC_REDFISH_DATA_STABLE_ID_H_