#
NetFlow
#
URL
frinx-netflow:netflow/interfaces/interface=
#
OPENCONFIG YANG
{
"interface": [
{
"id": "",
"config": {
"id": ""
},
"ingress-flows": {
"ingress-flow": [
{
"netflow-type": "NETFLOW_IPV4|NETFLOW_IPV6|NETFLOW_MPLS",
"config": {
"netflow-type": "NETFLOW_IPV4|NETFLOW_IPV6|NETFLOW_MPLS",
"monitor-name": "",
"sampler-name": ""
}
}
]
},
"egress-flows": {
"egress-flow": [
{
"netflow-type": "NETFLOW_IPV4|NETFLOW_IPV6|NETFLOW_MPLS",
"config": {
"netflow-type": "NETFLOW_IPV4|NETFLOW_IPV6|NETFLOW_MPLS",
"monitor-name": "",
"sampler-name": ""
}
}
]
}
}
]
}
#
OS Configuration Commands
#
Cisco IOS XR 5.3.4
#
CLI
interface flow ipv4|ipv6|mpls monitor sampler ingress flow ipv4|ipv6|mpls monitor sampler egress
Assumption is that monitor map and sampler map configuration already exist on a device.
#
Unit
Link to github : xr-unit