Inline Power Priority

Provides API support for configuring the power-limit, power-by-class, and priority class of PoE enabled ethernet interface. It also provides support for getting the power usage by a PoE port.

interfaces/interface

Supported HTTP Operations

GET method

URL: https://10.177.120.87/restconf/data/openconfig-interfaces:interfaces/interface/ethernet%201%2F1%2F11/ethernet
Request body: None
Response body:     {
    "openconfig-if-ethernet:ethernet": {
        "config": {
            "auto-negotiate": true,
            "duplex-mode": "FULL",
            "icx-openconfig-if-ethernet-aug:ethernet-clock": "none"
        },
        "state": {
            "auto-negotiate": true,
            "duplex-mode": "FULL",
            "negotiated-duplex-mode": "FULL",
            "negotiated-port-speed": "openconfig-if-ethernet:SPEED_UNKNOWN",
            "icx-openconfig-if-ethernet-aug:negotiated-clock": "none"
        },
        "openconfig-vlan:switched-vlan": {
            "state": {}
        },
        "icx-openconfig-if-poe-aug:poe": {
            "config": {
                "enabled": true
            },
            "state": {
                "enabled": true,
                "priority": 3,
                "power-by-class": 0,
                "power-used": "0.0",
                "power-allocated": "0.0"
            }
        },
        "icx-openconfig-if-trust-dscp-aug:trust-dscp": {
            "config": {
                "enabled": false
            },
            "state": {
                "enabled": false
            }
        }
    }
}

PUT method:

URL: https://10.177.120.87/restconf/data/openconfig-interfaces:interfaces/interface/ethernet 1%2F1%2F11/ethernet/poe/config 
Request body:
 {
    "config": {     
         "priority": 2,
         "power-by-class": 2
    }
}
Response body: None    

PATCH method:

URL: https://10.177.120.87/restconf/data/openconfig-interfaces:interfaces/interface/ethernet 1%2F1%2F11/ethernet/poe/config 
Request body:
 {
    "config": {     
         "priority": 3,
         "power-limit": 20000
    }
}
Response body: None