net: Client.Create interface from SNMP project
This is a port of phosphor-snmp commits d84e327dc and 95201f15c. Moving
to PDI simplifies the phosphor-snmp project build process and improves
OpenBMC DBus interface documentation consolidation.
Change-Id: Ib6aee82e1c60e4ca1d6d9f50e9ad886daa4bc92b
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/gen/xyz/openbmc_project/Network/Client/Create/meson.build b/gen/xyz/openbmc_project/Network/Client/Create/meson.build
new file mode 100644
index 0000000..63e118b
--- /dev/null
+++ b/gen/xyz/openbmc_project/Network/Client/Create/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Network/Client/Create__cpp'.underscorify(),
+ input: [ '../../../../../../yaml/xyz/openbmc_project/Network/Client/Create.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.current_source_dir() / '../../../../../../yaml',
+ 'xyz/openbmc_project/Network/Client/Create',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Network/Client/meson.build b/gen/xyz/openbmc_project/Network/Client/meson.build
index b996780..a5ec45a 100644
--- a/gen/xyz/openbmc_project/Network/Client/meson.build
+++ b/gen/xyz/openbmc_project/Network/Client/meson.build
@@ -12,3 +12,17 @@
],
)
+subdir('Create')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Network/Client/Create__markdown'.underscorify(),
+ input: [ '../../../../../yaml/xyz/openbmc_project/Network/Client/Create.interface.yaml', ],
+ output: [ 'Create.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.current_source_dir() / '../../../../../yaml',
+ 'xyz/openbmc_project/Network/Client/Create',
+ ],
+)
+
diff --git a/yaml/xyz/openbmc_project/Network/Client/Create.interface.yaml b/yaml/xyz/openbmc_project/Network/Client/Create.interface.yaml
new file mode 100644
index 0000000..77955d5
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Network/Client/Create.interface.yaml
@@ -0,0 +1,21 @@
+description: >
+methods:
+ - name: Client
+ description: >
+ Create network client endpoint.
+ parameters:
+ - name: Address
+ type: string
+ description: >
+ IP Address/Hostname
+ - name: Port
+ type: uint16
+ description: >
+ Network port.
+ errors:
+ - xyz.openbmc_project.Common.Error.InvalidArgument
+ returns:
+ - name: path
+ type: string
+ description: >
+ Path of the object which has been created.