-- Copyright (c) 2024 Huawei Technologies Co., Ltd.
-- openUBMC is licensed under Mulan PSL v2.
-- You can use this software according to the terms and conditions of the Mulan PSL v2.
-- You may obtain a copy of Mulan PSL v2 at:
--         http://license.coscl.org.cn/MulanPSL2
-- THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
-- EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
-- MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
-- See the Mulan PSL v2 for more details.

local NetworkAdapters = {}

local Mdb = require 'mc.mdb'

---@class NetworkAdapters: Table
---@field SystemID integer
---@field SlotID integer
---@field Name string
---@field Model string
---@field Manufacturer string
---@field ChipModel string
---@field AssociatedResource string
---@field BDF string
---@field Type integer
NetworkAdapters.NetworkAdapters = Mdb.register_interface('bmc.kepler.Systems.NetworkAdapters', {
    SystemID = {'y', nil, true, nil},
    SlotID = {'y', nil, true, nil},
    Name = {'s', nil, true, nil},
    Model = {'s', nil, true, nil},
    Manufacturer = {'s', nil, true, nil},
    ChipModel = {'s', nil, true, nil},
    AssociatedResource = {'s', nil, true, nil},
    BDF = {'s', nil, true, nil},
    Type = {'y', nil, true, nil}
}, {}, {})
return NetworkAdapters
