blob: 4f2b30e26c082f93bf5f6d66243c8275ced9e630 [file] [log] [blame]
SunnySrivastava1984e12b1812020-05-26 02:23:11 -05001#include "ipz_parser.hpp"
2
3#include "impl.hpp"
4
5namespace openpower
6{
7namespace vpd
8{
9namespace ipz
10{
11namespace parser
12{
13using namespace openpower::vpd::parser;
14using namespace openpower::vpd::constants;
15
16std::variant<kwdVpdMap, Store> IpzVpdParser::parse()
17{
Sunny Srivastavaf31a91b2022-06-09 08:11:29 -050018 Impl p(vpd, inventoryPath);
SunnySrivastava1984e12b1812020-05-26 02:23:11 -050019 Store s = p.run();
20 return s;
21}
22
23void IpzVpdParser::processHeader()
24{
Sunny Srivastavaf31a91b2022-06-09 08:11:29 -050025 Impl p(vpd, inventoryPath);
SunnySrivastava1984e12b1812020-05-26 02:23:11 -050026 p.checkVPDHeader();
27}
28
29std::string IpzVpdParser::getInterfaceName() const
30{
31 return ipzVpdInf;
32}
33
34} // namespace parser
35} // namespace ipz
36} // namespace vpd
37} // namespace openpower