# Configuring Flow Override Action(s)

You can configure a rule to override the configured flow action for egress ports to [push](https://aviznetworks.gitbook.io/opbnos-r2.5/cli-configuration-guide/configuring-flows-and-rules/configuring-push-pop-vlan) and/or [pop](https://aviznetworks.gitbook.io/opbnos-r2.5/cli-configuration-guide/configuring-flows-and-rules/broken-reference) VLAN. You can also override tool port(s) for egress traffic.

{% hint style="info" %}
override-action is per-rule and will require override-action for every rule in the flow
{% endhint %}

#### Reference

<table data-header-hidden><thead><tr><th></th><th></th><th data-hidden></th></tr></thead><tbody><tr><td>Command</td><td><p>rule 1 action</p><p>override-pop-vlan Override action to pop the VLAN <br>override-push-vlan-tag Override action to push VLAN Tag<br>override-to Override to configure a rule specific network tool or analyzer ports</p></td><td></td></tr><tr><td>Description</td><td>Rule actions</td><td></td></tr><tr><td>Parameters</td><td>● ruleid: It should be in the range 1 to 6000 <br>● override-to: override egress ports <br>● override-push-vlan: override MAP push VLAN <br>● override-pop-vlan: override pop VLAN</td><td></td></tr><tr><td>Mode</td><td>FLOW</td><td></td></tr></tbody></table>

#### Example

```
pbnoscli# configure terminal 
pbnoscli(config)# flow flow01
pbnoscli(config-flow-flow01)# network-ports Ethernet4
pbnoscli(config-flow-flow01)# tool-ports Ethernet8
pbnoscli(config-flow-flow01)# rule 1 
  action                Add rule specific action
  deny                  Deny traffic
  permit                Permit traffic
pbnoscli(config-flow-flow01)# rule 1 action 
  <cr>
  override-pop-vlan       Override action to pop the VLAN
  override-push-vlan-tag  Override action to push VLAN Tag
  override-to             Override to configure a rule specific network tool or analyzer ports
pbnoscli(config-flow-flow01)# rule 1 action override-to Ethernet12
```

You can verify the configuration by using the command(s) below:

```
pbnoscli# show flow all

===================================
Flow : flow01 (CLI)
===================================
Status       : enable          
Network-Port : Ethernet4/1       
Tool-Port    : Ethernet8/1       

Rule : 1               
++++++++++++++++++++++++++++++++++
Action                   : permit          
Source IP                : 10.10.0.0       
Source Mask              : 255.255.255.0   
Destination IP           : 20.0.20.0       
Destination Mask         : 255.255.255.0   
Counters                 : enable          
Override To        : Ethernet12/1      
pbnoscli# 
```

```
pbnoscli# show running-config 
configure terminal
!
interface ethernet Ethernet1/1
forward-error-correction rs
type network
!
interface ethernet Ethernet4/1
forward-error-correction rs
type network
!
interface ethernet Ethernet8/1
forward-error-correction rs
type tool
!
interface ethernet Ethernet12/1
forward-error-correction rs
type tool
!
interface mgmt
ip address 10.4.4.53/23 gateway 10.4.4.1
!
flow flow01
network-ports Ethernet1/1,Ethernet4/1
tool-ports Ethernet8/1
rule 1 permit src-ip 10.10.0.0/24 dest-ip 20.0.20.0/24 counters enable
rule 1 action override-to Ethernet12/1
!
pbnoscli# 
```
