Skip to content

Commit f08f0aa

Browse files
committed
Add Provisioning YAML File
Signed-off-by: Isha Sahni <[email protected]>
1 parent fd382fe commit f08f0aa

File tree

4 files changed

+111
-0
lines changed

4 files changed

+111
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Generated file; do not modify.
2+
3+
sdbusplus_current_path = 'xyz/openbmc_project/Provisioning/Provisioning'
4+
5+
generated_sources += custom_target(
6+
'xyz/openbmc_project/Provisioning/Provisioning__cpp'.underscorify(),
7+
input: [
8+
'../../../../../yaml/xyz/openbmc_project/Provisioning/Provisioning.interface.yaml',
9+
],
10+
output: [
11+
'common.hpp',
12+
'server.hpp',
13+
'server.cpp',
14+
'aserver.hpp',
15+
'client.hpp',
16+
],
17+
depend_files: sdbusplusplus_depfiles,
18+
command: [
19+
sdbuspp_gen_meson_prog,
20+
'--command',
21+
'cpp',
22+
'--output',
23+
meson.current_build_dir(),
24+
'--tool',
25+
sdbusplusplus_prog,
26+
'--directory',
27+
meson.current_source_dir() / '../../../../../yaml',
28+
'xyz/openbmc_project/Provisioning/Provisioning',
29+
],
30+
install: should_generate_cpp,
31+
install_dir: [
32+
get_option('includedir') / sdbusplus_current_path,
33+
get_option('includedir') / sdbusplus_current_path,
34+
false,
35+
get_option('includedir') / sdbusplus_current_path,
36+
get_option('includedir') / sdbusplus_current_path,
37+
],
38+
build_by_default: should_generate_cpp,
39+
)
40+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Generated file; do not modify.
2+
subdir('Provisioning')
3+
4+
sdbusplus_current_path = 'xyz/openbmc_project/Provisioning'
5+
6+
generated_markdown += custom_target(
7+
'xyz/openbmc_project/Provisioning/Provisioning__markdown'.underscorify(),
8+
input: [
9+
'../../../../yaml/xyz/openbmc_project/Provisioning/Provisioning.interface.yaml',
10+
],
11+
output: ['Provisioning.md'],
12+
depend_files: sdbusplusplus_depfiles,
13+
command: [
14+
sdbuspp_gen_meson_prog,
15+
'--command',
16+
'markdown',
17+
'--output',
18+
meson.current_build_dir(),
19+
'--tool',
20+
sdbusplusplus_prog,
21+
'--directory',
22+
meson.current_source_dir() / '../../../../yaml',
23+
'xyz/openbmc_project/Provisioning/Provisioning',
24+
],
25+
install: should_generate_markdown,
26+
install_dir: [inst_markdown_dir / sdbusplus_current_path],
27+
build_by_default: should_generate_markdown,
28+
)
29+

gen/xyz/openbmc_project/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ subdir('Object')
2727
subdir('ObjectMapper')
2828
subdir('PFR')
2929
subdir('PLDM')
30+
subdir('Provisioning')
3031
subdir('ScheduledTime')
3132
subdir('Sensor')
3233
subdir('Smbios')
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
description: >
2+
Interface to represent the provisioning status of the BMC. Provides a
3+
property to indicate whether the BMC is provisioned, and methods to initiate
4+
provisioning and check the peer BMC connection.
5+
properties:
6+
- name: Provisioned
7+
type: boolean
8+
flags:
9+
- readonly
10+
default: false
11+
description: >
12+
True means the BMC is in a provisioned state.
13+
- name: PeerConnected
14+
type: boolean
15+
flags:
16+
- readonly
17+
default: false
18+
description: >
19+
True means the BMC is in a provisioned state.
20+
peer BMC is present or not connected.
21+
methods:
22+
- name: ProvisionPeer
23+
description: >
24+
Starts the provisioning process on the peerBmc .
25+
26+
- name: InitiatePeerConnectionTest
27+
description: >
28+
Initiates a mutual TLS (mTLS) handshake with the peer BMC to verify
29+
connectivity. The outcome of the attempt (success or failure) is
30+
reflected in the PeerConnected property.
31+
signals:
32+
- name: PeerProvisioned
33+
description: >
34+
Emitted when the ProvisionPeer method completes. The signal carries a
35+
boolean indicating whether provisioning on the peer succeeded or
36+
failed.
37+
args:
38+
- type: boolean
39+
description: >
40+
True if provisioning on the peer BMC succeeded, false if it
41+
failed.

0 commit comments

Comments
 (0)