<div dir="ltr">Reviewed-by: Dean Marx <<a href="mailto:dmarx@iol.unh.edu" target="_blank">dmarx@iol.unh.edu</a>><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 2, 2024 at 3:25 PM Nicholas Pratte <<a href="mailto:npratte@iol.unh.edu">npratte@iol.unh.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Various test cases in the mac filter test suite called for granular<br>
manipulation of destination mac addresses to properly test mac address<br>
filtering functionality. To compensate, there is now an<br>
adjust_addresses boolean which the user can toggle if they wish to send<br>
their own addressing; the boolean is true by default.<br>
<br>
Bugzilla ID: 1454<br>
Signed-off-by: Nicholas Pratte <<a href="mailto:npratte@iol.unh.edu" target="_blank">npratte@iol.unh.edu</a>><br>
---<br>
 dts/framework/test_suite.py | 7 ++++++-<br>
 1 file changed, 6 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/dts/framework/test_suite.py b/dts/framework/test_suite.py<br>
index 694b2eba65..551a587525 100644<br>
--- a/dts/framework/test_suite.py<br>
+++ b/dts/framework/test_suite.py<br>
@@ -185,6 +185,7 @@ def send_packet_and_capture(<br>
         packet: Packet,<br>
         filter_config: PacketFilteringConfig = PacketFilteringConfig(),<br>
         duration: float = 1,<br>
+        adjust_addresses: bool = True,<br>
     ) -> list[Packet]:<br>
         """Send and receive `packet` using the associated TG.<br>
<br>
@@ -195,11 +196,15 @@ def send_packet_and_capture(<br>
             packet: The packet to send.<br>
             filter_config: The filter to use when capturing packets.<br>
             duration: Capture traffic for this amount of time after sending `packet`.<br>
+            adjust_addresses: If :data:'True', adjust addresses of the egressing packet with<br>
+                a default addressing scheme. If :data:'False', do not adjust the addresses of<br>
+                egressing packet.<br>
<br>
         Returns:<br>
             A list of received packets.<br>
         """<br>
-        packet = self._adjust_addresses(packet)<br>
+        if adjust_addresses:<br>
+            packet = self._adjust_addresses(packet)<br>
         return self.tg_node.send_packet_and_capture(<br>
             packet,<br>
             self._tg_port_egress,<br>
-- <br>
2.44.0<br>
<br>
</blockquote></div>