Configuring a Flow Monitor for IPv4 Ingress Traffic
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys/hwtelemetry/netflow.json
{ "topSystem": { "children": [ { "interfaceEntity": { "children": [ { "pcAggrIf": { "attributes": { "id": "po123", "layer": "Layer3", "medium": "p2p", "userCfgdFlags": "admin_layer" } } } ] } }, { "analyticsHwTelemetry": { "children": [ { "netflowNetflow": { "children": [ { "netflowInst": { "attributes": { "mode": "netflow" }, "children": [ { "netflowFwdInstTarget": { "attributes": { "id": "369098874" }, "children": [ { "netflowRsMonitorAtt": { "attributes": { "tDn": "sys/hwtelemetry/netflow/inst-netflow/monitor-mon_1" } } } ] } } ] } } ] } } ] } } ] } }
Response
{ imdata:[] }
Copy
<System> <intf-items> <aggr-items> <AggrIf-list> <id>po123</id> <layer>Layer3</layer> <medium>p2p</medium> <userCfgdFlags>admin_layer</userCfgdFlags> </AggrIf-list> </aggr-items> </intf-items> <hwtelemetry-items> <netflow-items> <inst-items> <Inst-list> <mode>netflow</mode> <fwdinst-items> <FwdInstTarget-list> <id>369098874</id> <rsmonitorAtt-items> <RsMonitorAtt-list> <tDn>/System/hwtelemetry-items/netflow-items/inst-items/Inst-list[mode='netflow']/monitor-items/Monitor-list[name='mon_1']</tDn> </RsMonitorAtt-list> </rsmonitorAtt-items> </FwdInstTarget-list> </fwdinst-items> </Inst-list> </inst-items> </netflow-items> </hwtelemetry-items> </System>