mirror
8 min
asternos yang model for the mirror \<font color="#1d50a2">yang tree diagram\</font> module asternos mirror + rw mirror + rw session \[id] + rw id uint8 + rw mirror type identityref + rw direction? mirror direction type + rw destination ports union + rw source ports union + rw remote vlan? cmn\ vlan id \<font color="#1d50a2">resources\</font> \<font color="#1d50a2">resource list\</font> path access /mirror read write /mirror/session read write /mirror/session/id read write /mirror/session/mirror type read write /mirror/session/direction read write /mirror/session/destination ports read write /mirror/session/source ports read write /mirror/session/remote vlan read write \<font color="#1d50a2">detailed nodes\</font> \<font color="#1d50a2">/mirro\</font> r path /mirror node type container description top level configuration for the mirror access read write \<font color="#1d50a2">/mirror/session\</font> path /mirror/session node type list access read write \<font color="#1d50a2">/mirror/session/id\</font> path /mirror/session/id node type leaf description identify mirror sessions access read write data type \<yang type uint8> constraints valid range 1 to 7 \<font color="#1d50a2">/mirror/session/mirror type\</font> path /mirror/session/mirror type node type leaf description mirror session type access read write data type \<yang type identityref> constraints identityref with options span rspan mandatory yes \<font color="#1d50a2">/mirror/session/direction\</font> path /mirror/session/direction node type leaf description direction of mirror session access read write data type \<yang type mirror direction type> constraints enumeration with options both rx tx \<font color="#1d50a2">/mirror/session/destination ports\</font> path /mirror/session/destination ports node type leaf list description mirror session destination port when type is rspan, only support single ethernet port access read write data type \<yang type union> \<font color="#1d50a2">/mirror/session/source ports\</font> path /mirror/session/source ports node type leaf list description mirror session source port access read write data type \<yang type union> \<font color="#1d50a2">/mirror/session/remote vlan\</font> path /mirror/session/remote vlan node type leaf description remote vlan for rspan access read write data type \<yang type vlan id> constraints multiple constraints valid range 1 to 4094 when condition /mirror type = 'mirror\ rspan'
