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