New and Changed Information
The following table provides an overview of the significant changes to this guide up to this current release. The table does not provide an exhaustive list of all changes that are made to the guide or of the new features up to this release.
Cisco APIC Release Version |
Feature |
Description |
---|---|---|
5.1(3) |
OpFlex support for NetFlow with OVS |
This guide became available. |
5.2(1) |
Change in CRD parameter |
The |
About OpFlex support for NetFlow with OVS
The OpFlex support for NetFlow with OVS feature enables the ability to sample traffic from compute nodes and analyze it through network analyzers.
Benefits of OpFlex support for NetFlow with OVS
The OpFlex support for NetFlow with OVS provides several benefits:
-
The ability to get flow data directly from compute nodes providing visibility of local traffic.
-
Easier network troubleshooting and security analysis.
OpFlex support for NetFlow with OVS Limitations and Restrictions
Be aware of the following issues when configuring OpFlex support for NetFlow with OVS:
-
The current implementation enables NetFlow for all compute nodes in the VMM domain. There is no support for choosing a subset of compute nodes to export flow information from.
-
There is no standard way to enable NetFlow in OpenStack setups. We recommend a new approach that requires the use of AIM to enable this.
-
VMM Domain cannot be associated with more than one NetFlow VMM Exporter Policy.
Prerequisites for Configuring OpFlex support for NetFlow with OVS
You must complete the following tasks before you configure OpFlex support for NetFlow with OVS:
-
You must have Cisco ACI release 5.1 or later and either have the Cisco ACI CNI plug-in or Cisco ACI ML2 plug-in installed.
-
You must have Cisco ACI-CNI release 5.1 or later installed.
OpFlex support for NetFlow with OVS Configuration Workflow
This section describes a high-level overview of the tasks you perform to configure OpFlex support for NetFlow with OVS.
Procedure
Step 1 |
To configure OpFlex support for Netflow with OVS: On OpenStack: On Kubernetes: |
Step 2 |
To verify that OpFlex is configured correctly for the Netflow OVS: On Kubernetes: |
Configuring OpFlex support for NetFlow with OVS on OpenStack Setup
This section describes how to configure OpFlex support for NetFlow with OVS on OpenStack setup.
The aimctl CLI tool must be run from the "ciscoaci_aim" docker container which lives in the OpenStack controller node.
In the case of multiple controllers, running the aimctl command on any one of the controllers to configure netflow is sufficient. All the other controllers will receive the WebSocket event to sync up.
Procedure
Step 1 |
To enter the container, enter the following command:
|
Step 2 |
You must enter the
Example:
|
Step 3 |
You must enter the
Example:
|
Configuring OpFlex support for NetFlow with OVS on Kubernetes Setup
This section describes how to configure OpFlex support for NetFlow with OVS on Kubernetes setup.
Procedure
Step 1 |
Verify the CRD is available, any faults and violations, enter the following commands:
|
Step 2 |
Apply the Custom Resource yaml file with valid inputs, enter the following command:
Sample Custom Resource YAML file:
From Cisco ACI CNI release 5.2(1), the
|
Verifying that OpFlex is configured correctly for the NetFlow OVS on OpenStack
This section describes how to verify the OpFlex support for NetFlow with OVS on OpenStack setup.
Procedure
Step 1 |
Log in to the Cisco APIC GUI, on the menu bar, choose . |
Step 2 |
You need to confirm that the NetFlow policy created by you with the user inputs (dst_ip, version) has been pushed to the APIC. In the Navigation pane, choose and click on one of the VMM external collector reachability. |
Step 3 |
Verify the NetFlow policy has been successfully pushed to opflex agent with your given inputs. The dstAddr shown here will be the routable IP where the traffic will be received. Inside the opflex_agent container, enter the following commands:
|
Step 4 |
The opflex agent uses OpenFlow to configure flows and pushes the NetFlow config to OVSDB. You need to verify the NetFlow policy with dest_IP and port, you have configured has been received by the OVS. On the compute nodes, check for ovs-vsctl list ipfix, enter the following commands:
|
Verifying that OpFlex is configured correctly for the NetFlow OVS on Kubernetes
This section describes how to verify the OpFlex support for NetFlow with OVS on Kubernetes setup.
Procedure
Step 1 |
Log in to the Cisco APIC GUI, on the menu bar, choose . |
Step 2 |
Verify that you see the NetFlow session is created on the APIC. In the Navigation pane, choose and click on the domain. |
Step 3 |
Verify that the NetFlow policy has been successfully pushed to opflex agent with your given inputs. The dstAddr shown here
will be the routable IP where the traffic is received. Inside the Example:
|
Step 4 |
Look up the pods, enter the following command:
|
Step 5 |
SSH into open-vswitch pod, enter the following command:
Example:
|
Step 6 |
Verify if the OVS has received the NetFlow config. Inside the pod, enter the following command:
|