.. _example_interfaces_ethernet_traffic_policy_out_outpolicy: ########## Out Policy ########## This scenario shows how to attach a traffic policy to the ``out`` hook in an Ethernet interface. This hook is triggered when a packet needs to be sent through the interface. .. image:: ../common.svg :width: 800 ************************** Test Interface Traffic Out ************************** Description =========== A traffic policy is configured in DUT0 to drop all outgoing traffic with packet length larger than 128 bytes. Scenario ======== .. include:: outpolicy/testinterfacetrafficout .. raw:: html
****************************************** Test Interface Traffic Out With Priorities ****************************************** Description =========== Two traffic policies are configured in DUT0 with different priorities. The first one marks outgoing traffic with packet length larger than 128 bytes, while the second one drops the marked packets. Scenario ======== .. include:: outpolicy/testinterfacetrafficoutwithpriorities .. raw:: html