{
"Resources": [
{
"Uri": "/cli/v1/lsw",
"Interfaces": [
{
"Type": "Patch",
"Description": "Operate with lsw"
}
]
},
{
"Uri": "/cli/v1/lsw/reset",
"Interfaces": [
{
"Type": "Patch",
"Description": "Reset LAN Switch",
"Usage": "ipmcset -t lsw -d reset -v <device> <type>",
"Confirm": {
"Condition": true,
"Description": "WARNING: The operation will reboot Lsw system. Continue?[Y/N]:"
},
"ReqBody": {
"Type": "object",
"Required": true,
"Properties": {
"device": {
"Required": true,
"Type": "integer",
"Validator": [
{
"Type": "Enum",
"Formula": [
1,
2,
3
]
}
],
"Description": "\n 1 Chip\n 2 Phy\n 3 All"
},
"type": {
"Required": true,
"Type": "integer",
"Validator": [
{
"Type": "Enum",
"Formula": [
1,
2
]
}
],
"Description": "\n 1 Hard reset\n 2 Soft reset"
}
}
},
"ProcessingFlow": [
{
"Type": "Method",
"Path": "/bmc/kepler/Chassis/1/LanSwitchs/1",
"Interface": "bmc.kepler.Chassis.LanSwitch",
"Name": "LswReset",
"Params": [
"${ReqBody/device}",
"${ReqBody/type}"
]
}
],
"Echoes": [
"ipmcset/lsw_reset",
""
]
}
]
}
]
}