Skip to content

Commit f01a8c9

Browse files
authored
DataSync: Added the "BMCData" interface (#158)
- Introduced a new interface, "BMCData," to facilitate syncing BMC data between redundant BMC systems, as outlined in the following design document, https://gerrit.openbmc.org/c/openbmc/docs/+/71039. - This interface can be implemented by application to enable data synchronization services in redundant BMC setups. - The interface is started with an object path to allow application to host and manage data sync services. Change-Id: Ia36f49b4c773538cf72ed74152b8898c87d77940 Signed-off-by: Ramesh Iyyar <[email protected]>
1 parent d94c41d commit f01a8c9

File tree

4 files changed

+52
-0
lines changed

4 files changed

+52
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Generated file; do not modify.
2+
generated_sources += custom_target(
3+
'xyz/openbmc_project/DataSync/BMCData__cpp'.underscorify(),
4+
input: [ '../../../../../yaml/xyz/openbmc_project/DataSync/BMCData.interface.yaml', ],
5+
output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
6+
depend_files: sdbusplusplus_depfiles,
7+
command: [
8+
sdbuspp_gen_meson_prog, '--command', 'cpp',
9+
'--output', meson.current_build_dir(),
10+
'--tool', sdbusplusplus_prog,
11+
'--directory', meson.current_source_dir() / '../../../../../yaml',
12+
'xyz/openbmc_project/DataSync/BMCData',
13+
],
14+
)
15+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Generated file; do not modify.
2+
subdir('BMCData')
3+
generated_others += custom_target(
4+
'xyz/openbmc_project/DataSync/BMCData__markdown'.underscorify(),
5+
input: [ '../../../../yaml/xyz/openbmc_project/DataSync/BMCData.interface.yaml', ],
6+
output: [ 'BMCData.md' ],
7+
depend_files: sdbusplusplus_depfiles,
8+
command: [
9+
sdbuspp_gen_meson_prog, '--command', 'markdown',
10+
'--output', meson.current_build_dir(),
11+
'--tool', sdbusplusplus_prog,
12+
'--directory', meson.current_source_dir() / '../../../../yaml',
13+
'xyz/openbmc_project/DataSync/BMCData',
14+
],
15+
)
16+

gen/xyz/openbmc_project/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ generated_others += custom_target(
5252
subdir('Condition')
5353
subdir('Console')
5454
subdir('Control')
55+
subdir('DataSync')
5556
subdir('Debug')
5657
subdir('Dump')
5758
subdir('HardwareIsolation')
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
description: >
2+
Implement the transfer of BMC application data to redundant BMC.
3+
4+
properties:
5+
- name: DisableSync
6+
type: boolean
7+
default: false
8+
description: >
9+
It can be utilized to disable synchronization when the redundant BMC
10+
is in a faulty state.
11+
12+
It does not interrupt ongoing sync operations. If the redundant BMC
13+
network is unstable, the ongoing sync operation will fail and attempt
14+
retries. However, it will not proceed if this property value is set to
15+
true.
16+
17+
paths:
18+
- namespace: /xyz/openbmc_project/data_sync/bmc_data
19+
description: >
20+
The root path for data synchronization between BMCs.

0 commit comments

Comments
 (0)