Configures, modifies, or retrieves sFlow configuration.
URI | Description |
---|---|
/rest/config/running/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. |
/restconf/data/brocade-sflow:sflow/update-destination-mac | Retrieves the state of Update Destination MAC for routed packets feature. |
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. |
/restconf/data/brocade-sflow:sflow/update-destination-mac | <sflow><update-destinationmac/></sflow> | Configures sFlow Update Destination MAC for routed packets. |
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 |
/restconf/data/brocade-sflow:sflow/update-destination-mac |
GET, POST, PUT, PATCH, DELETE, OPTIONS, and HEAD operations are supported.
The following example uses the GET option to retrieve the configuration details.
URIhttp://host:80/rest/config/running/sflow/enable
None
<sflowurn:brocade.com:mgmt:brocade-sflow"" xmlns:y=""http://brocade.com/ns/rest"" y:self=""/rest/config/running/sflow""> <enable>true</enable> <source-interface y:self=""/rest/config/running/sflow/source-interface""> </source-interface> <collector y:self=""/rest/config/running/sflow/collector/34.1.1.2%2C6343%2Cvrf2""> <collector-ip-address>34.1.1.2</collector-ip-address> <collector-port-number>6343</collector-port-number> <use-vrf>vrf2</use-vrf> </collector> <collector y:self=""/rest/config/running/sflow/collector/112.1.1.2%2C6343%2Cdefault-vrf""> <collector-ip-address>112.1.1.2</collector-ip-address> <collector-port-number>6343</collector-port-number> <use-vrf>default-vrf</use-vrf> </collector> <collector y:self=""/rest/config/running/sflow/collector/172.22.12.83%2C6343%2Cmgmt-vrf""> <collector-ip-address>172.22.12.83</collector-ip-address> <collector-port-number>6343</collector-port-number> <use-vrf>mgmt-vrf</use-vrf> </collector> <collector y:self=""/rest/config/running/sflow/collector/fdd1:a123:b123:c123:34:1:1:2%2C6622%2Cvrf2""> <collector-ip-address>fdd1:a123:b123:c123:34:1:1:2</collector-ip-address> <collector-port-number>6622</collector-port-number> <use-vrf>vrf2</use-vrf> </collector> <collector y:self=""/rest/config/running/sflow/collector/fdd1:a123:b123:c123:112:1:1:2%2C6343%2Cdefault-vrf""> <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> <polling-interval>44</polling-interval> <sample-rate>456</sample-rate> </sflow>
The following example uses the POST option to configure sFlow collector.
URIhttp://host:80/rest/config/running/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.
URIhttp://host:80/rest/config/running/sflow/sample-rate
None
None