Configures, modifies, or retrieves sFlow configuration.
URI | Description |
---|---|
/restconf/data/brocade-sflow:sflow | sFLow configuration. |
GET URIs | Description |
---|---|
/restconf/data/brocade-sflow:sflow | Retrieves sFLow configuration. |
/restconf/data/brocade-sflow:sflow/agent-address | Retrieves sFLow agent-ID address. |
/restconf/data/brocade-sflow:sflow/enable | Retrieves if sFlow is enabled globally or not. |
/config/running/sflow/source-interface | Retrieves sFlow source IP interface. |
/restconf/data/brocade-sflow:sflow/agent-address/agent-interface-name | Retrieves the sFlow interface information. |
/restconf/data/brocade-sflow:sflow/collector=%collector-ip-address%,%collector-port-number%,%use-vrf% | Retrieves sFlow collector configuration. |
/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-sflow:sflow/polling-interval | Retrieves interface counter polling interval details. |
/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-sflow:sflow/sample-rate | Retrieves interface sampling rate. |
POST URIs | Payload | Description |
---|---|---|
/restconf/data/brocade-sflow:sflow | <collector><collector-ip-address>{inet:ip-address}</collector-ip-address><collector-port-number>{uint32}</collector-port-number><use-vrf>{common-def:vrf-name}</use-vrf></collector> | Configures sFlow collector. |
PATCH URIs | Payload | Description |
---|---|---|
/restconf/data/brocade-sflow:sflow | <sflow><enable>true</enable></sflow> | Enables sFlow. |
/restconf/data/brocade-sflow:sflow/agent-address/agent-interface-name | <source-interface><interface-type>{source-interface-type}</interface-type><interface-name>{loopback:intf-loopback-port-type}</interface-name></source-interface> | Confiugres sFlow source interface. |
/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-sflow:sflow/polling-interval | <sflow><polling-interval>{uint32}</polling-interval></sflow> | Configures sFlow polling interval. |
/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-sflow:sflow/sample-rate | <sflow><sample-rate>{uint32}</sample-rate></sflow> | Configures sFlow sampling rate. |
PUT URIs | Payload | Description |
---|---|---|
/restconf/data/brocade-sflow:sflow | <sflow><enable>true</enable></sflow> | Enables sFlow. |
/restconf/data/brocade-sflow:sflow/agent-address/agent-interface-name | <source-interface><interface-type>{source-interface-type}</interface-type><interface-name>{loopback:intf-loopback-port-type}</interface-name></source-interface> | Confiugres sFlow source interface. |
/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-sflow:sflow/polling-interval | <sflow><polling-interval>{uint32}</polling-interval></sflow> | Configures sFlow polling interval. |
/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-sflow:sflow/sample-rate | <sflow><sample-rate>{uint32}</sample-rate></sflow> | Configures sFlow sampling rate. |
DELETE URIs |
---|
/restconf/data/brocade-sflow:sflow/enable |
/restconf/data/brocade-sflow:sflow/agent-address |
/restconf/data/brocade-sflow:sflow/source-interface |
/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-sflow:sflow/polling-interval |
/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-sflow:sflow/sample-rate |
GET, POST, PUT, PATCH, DELETE, OPTIONS, and HEAD operations are supported.
The following example uses the GET option to retrieve the configuration details.
http://host:443/restconf/data/brocade-sflow:sflow/enable
None
The following example uses the POST option to configure sFlow collector.
http://host:443/restconf/data/brocade-sflow:sflow
<collector> <collector-ip-address>fdd1:a123:b123:c123:112:1:1:2</collector-ip-address> <collector-port-number>6343</collector-port-number> <use-vrf>default-vrf</use-vrf> </collector>
None
The following example uses the DELETE option to remove the sFlow sampling rate.
http://host:443/restconf/data/brocade-sflow:sflow/sample-rate
None
None