# Configuring Flows

To create and configure flows from the FlowVision GUI, click **Configuration** > **Flow Manager**.

The Flow Manager page shows the number of existing flows and a table showing the flow details, such as device ID, alias, description of the flow, status, the available counters, the action performed, and an option to edit and delete flows.

The following image shows the Flow Manager page:

![Flow Manager ](https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/wO9Gj6ifBo3Bz58eS5H6/Screenshot%202022-08-01%20at%204.49.58%20PM.png)

### Creating New Flows

To create a new flow, click the ![](https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/YsqdxFQH6CQhwiGQekjT/add_device_icon.png)button on the top right corner of the Flow Manager page. The Add Flow page displays.

![Add Flow Page](https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/CqBCymhRdyuau4qoXoV3/Screenshot_9.png)

Specify the Flow Name, Description for the Flow, and select the Action.&#x20;

#### Adding Source Ports

To add source ports

1. Click the **Network Ports** button on the Add Flow page.\
   The **Add From Ports** window will appear as below<br>

   <figure><img src="https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/4A3nuaMZCnBZp1ceJLk9/Screenshot_10.png" alt=""><figcaption><p>From port addition page</p></figcaption></figure>
2. Select a device to list all the ports available for that device.
3. Select the ports you need to add as source ports.&#x20;
4. Click **Add** to include the selected ports in the source ports list.\
   The added ports are displayed in the field below the **Network Ports** button on the Add Flow page.

To add source ports as Vxlan Tunnel for Vxlan Decapsulation

&#x20;    To configure a VXLAN tunnel as a source port for VXLAN Decap:

1. Set the **Flow Type** to **VXLAN Decap** as shown below.

<figure><img src="https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/aXgIA0n3Rofy0LbmSm9m/Screenshot_29.png" alt=""><figcaption></figcaption></figure>

2. Click **Network Ports** button on the **Add Flow** page.
   1. The **Add From Ports** window will appear.

<figure><img src="https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/eJnHHQ74peSLzaAkrXtA/Screenshot_27.png" alt=""><figcaption><p>From port addition page for tunnel</p></figcaption></figure>

3. Select a device to list the available Vxlan tunnel for that device.
4. Choose the VXLAN tunnel you want to add as a source port.
5. Click **Add** to add the tunnel to the list of source ports.
   1. The added tunnel will be displayed in the field below the **Network Ports** button on the Add Flow page.

#### Adding Rules

To add rules,&#x20;

1. Click the **Rules** button on the Add Flow page.\
   The Add Rule window displays with GTP disable.<br>

   <figure><img src="https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/igJw6BxtZFb8XRtUbc7K/Screenshot_11.png" alt=""><figcaption><p>Add rule pop-up window</p></figcaption></figure>

&#x20;       The Add Rule window displays with GTP enable.

<figure><img src="https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/4IaQl6oNMkJKTtUhUR8e/Screenshot_26.png" alt=""><figcaption><p>Add rule pop-up window with gtp enable</p></figcaption></figure>

1. Specify values for the following, in the **Rule** tab:
   * **Rule ID** - specify a name for the new rule.
   * **Description** - enter a description of the new rule to show its purpose.
   * **Action** - select an action for the rule. The available options are Permit, Deny, Match All.
   * **Type** - select the IP address type. Available options are IPV4 and IPV6.
   * **GTP** - enable or disable the GTP-based filter option on a rule, when gtp enable provide GTP IP Type, Match All, TEID, Inner Protocol, Inner Source IP, Inner Source IP Mask, Inner Destination IP and Inner Destination IP Mask to match upon.
   * **Counters** - enable or disable counters.
   * **IP** **Protocol** - select the IP protocol for the rule. The available options are - IP, TCP, UDP,RSVP,GRE,SCTP and other. if you select others then we must provide protocol number.
   * **Source** **IP** - specify the source IP for the rule.
   * **Source** **Mask** - specify the source mask for the rule.
   * **Destination IP** - specify the destination IP for the rule.
   * **Destination Mask** - specify the destination mask for the rule.
   * **TTL** - specify the time-to-live value for the packets in the system.
   * **VLAN** - specify the VLAN details.
   * **TOS** - specify the type of service.
   * **Override To Ports** - select the override option for ports.
   * **Advanced Action** - specify the override actions. The available options are override-push-vlan, override-pop-vlan, and Overwrite. If you select override-push-vlan, you must also provide the VLAN ID, in the VLAN ID field. And if you select Overwrite ,then you must provide Destination IP or Destination mac or Destination Port.
2. Specify values in the **Template** tab. Either specify the rule options in the first tab or select the pre-defined template on the second tab. For details on the template, refer to [Template](https://aviznetworks.gitbook.io/apb-r2.10/aviz-flowvision-graphical-user-interface-guide/configuration/configuring-rule-templates)
3. Click **Add** to add the rule.

The added rules are displayed in the table below the Rules button on the Flow Manager page.

<figure><img src="https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/W8ehG2qoZWLW4O9VEp9T/Screenshot_12.png" alt=""><figcaption><p>Added rule displayed under Rules tab</p></figcaption></figure>

#### Adding Destination Ports

To add destination ports,

1. Click the **Tool Ports** button on the **Add Flow** page.
   1. The Add To Ports window displays.<br>

      <figure><img src="https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/SZtqb8SrMAOwN8KL6Qrs/Screenshot_13.png" alt=""><figcaption><p>To port addition page</p></figcaption></figure>
2. Select a device to list all the ports available for that device.
3. Choose the ports you want to add as destination ports.
4. Click **Add** to include the selected ports in the destination ports list.
   1. The added ports are displayed in the field below the **Tool Ports** button on the Add Flow page.

To add destination ports as Vxlan Tunnel

&#x20;       To configure a VXLAN tunnel as a destination port:

1. Set the **Flow Type** to **VXLAN Encap**.

<figure><img src="https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/QrL61KyvjMimSkVaoPKF/Screenshot_30.png" alt=""><figcaption></figcaption></figure>

2. Click **Tool Ports** button on the **Add Flow** page.
   1. The **Add To Ports** window will appear.

<figure><img src="https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/5wGOeETLHc7Z71bZQW8Z/Screenshot_31.png" alt=""><figcaption><p>Tool port addition page for tunnel</p></figcaption></figure>

3. Select a device to list the available Vxlan tunnel for that device.
4. Choose the VXLAN tunnel you want to add as a destination port.
5. Click **Add** to include the selected tunnel in the destination ports list.
   1. The added tunnel will be displayed below the **To Ports** button on the **Add Flow** page.
   2.

After adding the source ports, destination ports, and rules, click **Create Flow** on the Add Flow page. This action creates a new flow.

<figure><img src="https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/uTc9ug0HE2J6f95DUjvw/Screenshot%202022-08-13%20at%201.48.43%20PM.png" alt=""><figcaption><p>Page after Flow created</p></figcaption></figure>

### Editing and Deleting the existing Flow

To edit an existing flow, click the ![](https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/to3xXg07NdnQi3Zs1AvA/edit_icon.png)icon and make your changes in the **flow** page. Once the modification is done, click the update button

<figure><img src="https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/0PPJFcpUYSsoaiecpl7m/Screenshot%202022-09-15%20at%209.24.40%20PM.png" alt=""><figcaption><p>Flow updated successfully</p></figcaption></figure>

To delete the existing flow, click the ![](https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/Jcb29ZyJYMFMRPzrhKFF/delete_backup_icon.png)icon.

<figure><img src="https://content.gitbook.com/content/vXqJArT8s5FQ1ZcomUW7/blobs/bAO2hTYwXv8aAydq8v59/Screenshot%202022-08-13%20at%205.09.20%20PM.png" alt=""><figcaption><p>Flow deleted successfully</p></figcaption></figure>
