From f3b3366fbbba20f0b713bcc87ef3dfe47d53909f Mon Sep 17 00:00:00 2001 From: roly Date: Fri, 17 Jan 2025 10:00:40 +0800 Subject: [PATCH] Add rsyslog dbus interface --- .../Logging/Rsyslog/meson.build | 15 ++++++ gen/xyz/openbmc_project/Logging/meson.build | 15 ++++++ .../Logging/Rsyslog.interface.yaml | 48 +++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100755 gen/xyz/openbmc_project/Logging/Rsyslog/meson.build create mode 100755 yaml/xyz/openbmc_project/Logging/Rsyslog.interface.yaml diff --git a/gen/xyz/openbmc_project/Logging/Rsyslog/meson.build b/gen/xyz/openbmc_project/Logging/Rsyslog/meson.build new file mode 100755 index 0000000..429f7e2 --- /dev/null +++ b/gen/xyz/openbmc_project/Logging/Rsyslog/meson.build @@ -0,0 +1,15 @@ +# Generated file; do not modify. +generated_sources += custom_target( + 'xyz/openbmc_project/Logging/Rsyslog__cpp'.underscorify(), + input: [ '../../../../../yaml/xyz/openbmc_project/Logging/Rsyslog.interface.yaml', ], + output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'client.hpp', ], + depend_files: sdbusplusplus_depfiles, + command: [ + sdbuspp_gen_meson_prog, '--command', 'cpp', + '--output', meson.current_build_dir(), + '--tool', sdbusplusplus_prog, + '--directory', meson.current_source_dir() / '../../../../../yaml', + 'xyz/openbmc_project/Logging/Rsyslog', + ], +) + diff --git a/gen/xyz/openbmc_project/Logging/meson.build b/gen/xyz/openbmc_project/Logging/meson.build index 3fbbcbb..197c3ec 100644 --- a/gen/xyz/openbmc_project/Logging/meson.build +++ b/gen/xyz/openbmc_project/Logging/meson.build @@ -74,6 +74,21 @@ generated_others += custom_target( ], ) +subdir('Rsyslog') +generated_others += custom_target( + 'xyz/openbmc_project/Logging/Rsyslog__markdown'.underscorify(), + input: [ '../../../../yaml/xyz/openbmc_project/Logging/Rsyslog.interface.yaml', ], + output: [ 'Rsyslog.md' ], + depend_files: sdbusplusplus_depfiles, + command: [ + sdbuspp_gen_meson_prog, '--command', 'markdown', + '--output', meson.current_build_dir(), + '--tool', sdbusplusplus_prog, + '--directory', meson.current_source_dir() / '../../../../yaml', + 'xyz/openbmc_project/Logging/Rsyslog', + ], +) + subdir('SEL') generated_others += custom_target( 'xyz/openbmc_project/Logging/SEL__markdown'.underscorify(), diff --git a/yaml/xyz/openbmc_project/Logging/Rsyslog.interface.yaml b/yaml/xyz/openbmc_project/Logging/Rsyslog.interface.yaml new file mode 100755 index 0000000..6696426 --- /dev/null +++ b/yaml/xyz/openbmc_project/Logging/Rsyslog.interface.yaml @@ -0,0 +1,48 @@ +description: > + This defines the rsyslog server configuration. + +properties: + - name: Status + type: boolean + description: > + Status of the rsyslog server. + - name: AddressType + type: enum[self.Type] + description: > + server adrress type which can be IPv4 or IPv6 etc. + errors: + - xyz.openbmc_project.Common.Error.NotAllowed + - name: Address + type: string + description: > + The value of this property can be IP of the rsyslog. + errors: + - xyz.openbmc_project.Common.Error.InvalidArgument + - xyz.openbmc_project.Common.Error.InternalFailure + - name: Port + type: uint16 + description: > + The value of this property is the network port number. + errors: + - xyz.openbmc_project.Common.Error.InternalFailure + - name: ProtocolType + type: enum[self.Protocol] + description: > + IP protocol type which can be TCP or UDP etc. + errors: + - xyz.openbmc_project.Common.Error.NotAllowed + +enumerations: + - name: Type + description: > + Possible IP adress types. + values: + - name: IPv4 + - name: IPv6 + + - name: Protocol + description: > + Possible IP protocol types.. + values: + - name: UDP + - name: TCP -- 2.25.1