{
"Resources": [
{
"Uri": "/cli/v1/lldp",
"Interfaces": [
{
"Type": "Patch",
"Description": "Operate lldp"
}
]
},
{
"Uri": "/cli/v1/lldp/status",
"Interfaces": [
{
"Type": "Patch",
"Description": " Set LLDP enable status",
"Usage": "ipmcset -t lldp -d status -v <enabled|disabled>",
"ReqBody": {
"Type": "object",
"Required": true,
"Properties": {
"status": {
"Required": true,
"Type": "string",
"Validator": [
{
"Type": "Enum",
"Formula": [
"enabled",
"disabled"
]
}
]
}
}
},
"RspBody": {
"Status": "${ReqBody/status}"
},
"Statements": {
"GetStatus": {
"Input": "${ReqBody/status}",
"Steps": [
{
"Type": "Switch",
"Formula": [
{
"Case": "enabled",
"To": true
},
{
"Case": "disabled",
"To": false
}
]
}
]
}
},
"ProcessingFlow": [
{
"Type": "Property",
"Path": "/bmc/kepler/Managers/1/LldpConfig",
"Interface": "bmc.kepler.Managers.LldpConfig",
"Source": {
"Enabled": "${Statements/GetStatus()}"
}
}
],
"Echoes": [
"ipmcset/lldp_status",
""
]
}
]
}
]
}