patch https://api.sixfab.com/v1/assets//alpon/network/priority
Set network interface priorities on the ALPON device.
The priority values must be sequential and start from 1, with no gaps or zeros. For example, the priorities should be 1, 2, 3, 4, etc.
If any of the provided priorities are invalid, the request will fail with a validation error.
Example payload:
{
"priorities": [
{"name": "eth0", "value": 1},
{"name": "usb0", "value": 2},
{"name": "wlan0", "value": 3}
]
}
Possible Error Codes:
- AssetNotFound: The asset with the specified ID was not found.
- AssetNotAlponDevice: The device is not an ALPON device.
- ErrorInvalidPriorityValue: Priority values cannot be negative.
- ErrorInvalidPrioritySequence: The priority values must start from 1 and increment without gaps (e.g., 1, 2, 3, ...).
- ErrorUpdatingNetworkPriorities: Error updating network priorities, make sure the interface names are correct and exist on the device.
- DeviceNotReachable: The device is not reachable.
Note:
- The priority values should start from 1 and increment without gaps (e.g., 1, 2, 3, ...).
- No priority value can be
0
or skipped.