def METHOD_NAME(self, dp):
    parser = self._datapath.ofproto_parser
    # Load VLAN header (needs to be done before settubg vlan tag)
    # Can't be done through the learn action because ryu doesn't support it
    match = MagmaMatch(
        direction=Direction.IN,
        vlan_tag=self.LOAD_VLAN,
    )
    actions = [
        parser.OFPActionPushVlan(ether.ETH_TYPE_8021Q),
        parser.NXActionRegLoad2(
            dst=VLAN_TAG_REG,
            value=0,
        ),
    ]
    flows.add_resubmit_next_service_flow(
        dp, self.vlan_id_scratch, match, actions,
        priority=flows.UE_FLOW_PRIORITY,
        resubmit_table=self.vlan_id_scratch,
    )