IPI-PORT-MIRROR
Configure id
Port mirror session index
Attribute Name: id
Attribute Type: uint32
Attribute Range: 1-18
Attribute Name: type
Attribute Type: enum (local|remote)
Netconf edit-config payload
<port-mirror xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-mirror">
<sessions>
<session> <!-- operation="delete"-->
<id>1</id>
<config>
<id>1</id>
<type>local</type>
</config>
</session>
</sessions>
</port-mirror>
Command Syntax
monitor session <1-18> (type (local|remote)|)
Configure enabled
Use this attribute to shut/unshut a port-mirror session
Attribute Name: enabled
Attribute Type: uint8
Netconf edit-config payload
<port-mirror xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-mirror">
<sessions>
<session>
<id>1</id>
<config>
<id>1</id>
</config>
</enabled><!-- operation="delete"-->
</session>
</sessions>
</port-mirror>
Command Syntax
no shut
Configure description
Use this attribute to add a description to port-mirror session
This command is supported when following feature are enabled advance mirror feature
Attribute Name: description
Attribute Type: string
Attribute Range: 1-32
Netconf edit-config payload
<port-mirror xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-mirror">
<sessions>
<session>
<id>1</id>
<config>
<id>1</id>
</config>
<description>LINE</description> <!-- operation="delete"-->
</session>
</sessions>
</port-mirror>
Command Syntax
description LINE
Configure source vlan
use this attribute to configure source-vlan
This command is supported when following feature are enabled advance mirror feature
Attribute Name: source-vlan
Attribute Type: string
Attribute Range: 2-4094
Netconf edit-config payload
<port-mirror xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-mirror">
<sessions>
<session>
<id>1</id>
<config>
<id>1</id>
</config>
<source-vlan>VLAN_RANGE</source-vlan> <!-- operation="delete"-->
</session>
</sessions>
</port-mirror>
Command Syntax
source vlan VLAN_RANGE
Configure interface name
Use this attribute to configure port mirror local interface
This command is supported when following feature are enabled advance mirror feature
Attribute Name: interface-name
Attribute Type: string
Netconf edit-config payload
<port-mirror xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-mirror">
<sessions>
<session>
<id>1</id>
<config>
<id>1</id>
</config>
<destination>
<local>
<config>
<interface-name>IFNAME</interface-name> <!-- operation="delete"-->
</config>
</local>
</destination>
</session>
</sessions>
</port-mirror>
Command Syntax
destination interface IFNAME
Configure reflector interface name
Use this attribute to configure port mirror remote reflector interface
This command is supported when following feature are enabled advance mirror feature
Attribute Name: reflector-interface-name
Attribute Type: string
Attribute Name: vlan-id
Attribute Type: uint16
Attribute Range: 2-4094
Netconf edit-config payload
<port-mirror xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-mirror">
<sessions>
<session>
<id>1</id>
<config>
<id>1</id>
</config>
<destination>
<remote>
<config>
<vlan-id>2</vlan-id>
<reflector-interface-name>IFNAME</reflector-interface-name>
</config>
</remote>
</destination>
</session>
</sessions>
</port-mirror>
Command Syntax
destination remote vlan <2-4094> reflector-port IFNAME
Configure direction
Source interface direction
This command is supported when following feature are enabled advance mirror feature
Attribute Name: direction
Attribute Type: enum (rx|tx|both)
Netconf edit-config payload
<port-mirror xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-mirror">
<sessions>
<session>
<id>1</id>
<config>
<id>1</id>
</config>
<source-interfaces>
<source-interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<direction>both</direction>
</source-interface>
</source-interfaces>
</session>
</sessions>
</port-mirror>
Command Syntax
source interface IFNAME ((rx|tx|both)|)
Last modified date: 08/22/2023