diff --git a/fboss/agent/ApplyThriftConfig.cpp b/fboss/agent/ApplyThriftConfig.cpp index 5a46d326cc8f7..0b9823305d42f 100644 --- a/fboss/agent/ApplyThriftConfig.cpp +++ b/fboss/agent/ApplyThriftConfig.cpp @@ -4842,6 +4842,8 @@ std::shared_ptr ThriftConfigApplier::updateMirror( } if (orig->getEgressPort()) { newMirror->setEgressPort(orig->getEgressPort().value()); + newMirror->setEgressPortDesc( + PortDescriptor(orig->getEgressPort().value())); } } if (*newMirror == *orig) { diff --git a/fboss/agent/MirrorManagerImpl.cpp b/fboss/agent/MirrorManagerImpl.cpp index 43dc69ea05bed..1143ca9a76f72 100644 --- a/fboss/agent/MirrorManagerImpl.cpp +++ b/fboss/agent/MirrorManagerImpl.cpp @@ -147,6 +147,7 @@ std::shared_ptr MirrorManagerImpl::updateMirror( entry, newMirror->getTunnelUdpPorts())); newMirror->setEgressPort(egressPort.value()); + newMirror->setEgressPortDesc(PortDescriptor(egressPort.value())); break; } @@ -155,6 +156,7 @@ std::shared_ptr MirrorManagerImpl::updateMirror( asic->isSupported(HwAsic::Feature::EVENTOR_PORT_FOR_SFLOW)) { auto eventorPort = getEventorPortForSflowMirror(mirror->getSwitchId()); newMirror->setEgressPort(eventorPort); + newMirror->setEgressPortDesc(PortDescriptor(eventorPort)); newMirror->setDestinationMac( getEventorPortInterfaceMac(state, eventorPort)); }