Symptom
My customer for SR 695539596 was not clear on how to configure this. They were trying to translate locally and in their case, they were merging 2 data centers with the same vlan ID numbers going across vPC. They did not want to create new vlan IDs for storage administration purposes, so they decided to try vlan mapping.
The following is from the first N7K document above as well as here:
Link: https://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/nx-os/layer2/configuration/guide/b_Cisco_Nexus_7000_Series_NX-OS_Layer_2_Switching_Configuration_Guide/m_configuring_vlans.html#task_1273736
Under section "Configuring VLAN Translation on a Trunk Port" a topology diagram is needed to show different examples clearly on how to configure this.
switch# config t
switch(config)# interface ethernet1/1
switch(config-if)# switchport vlan mapping 10 100
switch(config-if)# show interface ethernet1/1 vlan mapping
Interface eth1/1:
Original VLAN Translated VLAN
------------------ ---------------
10 100
Conditions
For example, they wanted to use end hosts on vlan 10 on one switch and vlan 10 on another, and in between they go through vPC peer switches and exit, they go through the process of translation and go to other 2 end switches back out vlan 10 on the 2 end switches, to the end hosts.
Workaround
To make this work is to add another line to translate this back by doing the following:
switch# config t
switch(config)# interface ethernet1/1
switch(config-if)# switchport vlan mapping 10 100
switch(config-if)# switchport vlan mapping 100 10
switch(config-if)# show interface ethernet1/1 vlan mapping
Interface eth1/1:
Original VLAN Translated VLAN
------------------ ---------------
10 100
100 10
Further Problem Description