Configuring a Flow Monitor for IPv4 Ingress Traffic
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys.json
{ "topSystem": { "children": [ { "interfaceEntity": { "children": [ { "l1PhysIf": { "attributes": { "id": "eth1/2", "layer": "Layer3", "userCfgdFlags": "admin_layer" } } } ] } }, { "analyticsHwTelemetry": { "children": [ { "netflowNetflow": { "children": [ { "netflowInst": { "attributes": { "mode": "netflow" }, "children": [ { "netflowFwdInstTarget": { "attributes": { "id": "436208128" }, "children": [ { "netflowRsMonitorAtt": { "attributes": { "tDn": "sys/hwtelemetry/netflow/inst-netflow/monitor-mon_1" } } } ] } } ] } } ] } } ] } } ] } }
Response
{ imdata:[] }
Copy
<System> <intf-items> <phys-items> <PhysIf-list> <id>eth1/2</id> <layer>Layer3</layer> <userCfgdFlags>admin_layer</userCfgdFlags> </PhysIf-list> </phys-items> </intf-items> <hwtelemetry-items> <netflow-items> <inst-items> <Inst-list> <mode>netflow</mode> <fwdinst-items> <FwdInstTarget-list> <id>436208128</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>