Addition of Fabric adapter interface
This commit adds an interface to define attributes of a
Fabric adapter.
Current use case:
Pcie cards need to implement this interface to be modeled as
fabric adapter via Redfish schema.
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: Id6dcd3e539246a37f6a886f724d8d5b3a2737133
diff --git a/gen/xyz/openbmc_project/Inventory/Item/FabricAdapter/meson.build b/gen/xyz/openbmc_project/Inventory/Item/FabricAdapter/meson.build
new file mode 100644
index 0000000..cb445ac
--- /dev/null
+++ b/gen/xyz/openbmc_project/Inventory/Item/FabricAdapter/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Inventory/Item/FabricAdapter__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Inventory/Item/FabricAdapter.interface.yaml', ],
+ output: [ 'server.cpp', 'server.hpp', 'client.hpp', ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Inventory/Item/FabricAdapter',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Inventory/Item/meson.build b/gen/xyz/openbmc_project/Inventory/Item/meson.build
index b243fb1..95c73a8 100644
--- a/gen/xyz/openbmc_project/Inventory/Item/meson.build
+++ b/gen/xyz/openbmc_project/Inventory/Item/meson.build
@@ -177,6 +177,21 @@
build_by_default: true,
)
+subdir('FabricAdapter')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Inventory/Item/FabricAdapter__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Inventory/Item/FabricAdapter.interface.yaml', ],
+ output: [ 'FabricAdapter.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Inventory/Item/FabricAdapter',
+ ],
+ build_by_default: true,
+)
+
subdir('Fan')
generated_others += custom_target(
'xyz/openbmc_project/Inventory/Item/Fan__markdown'.underscorify(),
diff --git a/xyz/openbmc_project/Inventory/Item/FabricAdapter.interface.yaml b/xyz/openbmc_project/Inventory/Item/FabricAdapter.interface.yaml
new file mode 100644
index 0000000..b355c9c
--- /dev/null
+++ b/xyz/openbmc_project/Inventory/Item/FabricAdapter.interface.yaml
@@ -0,0 +1,6 @@
+description: >
+ Implement to provide fabric adapter attributes.
+ A physical fabric adapter capable of connecting
+ to an interconnect fabric. Examples include but
+ are not limited to Ethernet, NVMe over Fabrics,
+ etc.