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