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