original_docstring: Build a vector of VPP ACLs and set it on the port
  
          Arguments -
          vpp_acls - a list of VppAcl(in_idx, out_idx) namedtuples to be set
                     on the interface. An empty list '[]' deletes all user
                     defined acls from the interface and retains only the spoof
                     ACL
          
docstring: Build a vector of VPP ACLs and set it on the port
  Arguments
  vpp_acls - a list of VppAcl(in_idx, out_idx) namedtuples to be set
  on the interface. An empty list '[]' deletes all user
  defined acls from the interface and retains only the spoof
  ACL
docstring_tokens: Build a vector of VPP ACLs and set it on the port Arguments vpp_acls - a list of VppAcl ( in_idx out_idx ) namedtuples to be set on the interface . An empty list ' [] ' deletes all user defined acls from the interface and retains only the spoof ACL
code: def _set_acls_on_vpp_port(self, vpp_acls, sw_if_index):
          """Build a vector of VPP ACLs and set it on the port
  
          Arguments -
          vpp_acls - a list of VppAcl(in_idx, out_idx) namedtuples to be set
                     on the interface. An empty list '[]' deletes all user
                     defined acls from the interface and retains only the spoof
                     ACL
          """
          # Initialize lists with anti-spoofing vpp acl indices
          spoof_acl = self.spoof_filter_on_host()
          # input acl on vpp filters egress traffic from vm and viceversa
          input_acls = [spoof_acl.out_idx]
          output_acls = [spoof_acl.in_idx]
          if vpp_acls:
              for acl in vpp_acls:
                  input_acls.append(acl.out_idx)  # in on vpp == out on vm
                  output_acls.append(acl.in_idx)  # out on vpp == in on vm
          # Build the vpp ACL vector
          acls = input_acls + output_acls
          # (najoy) At this point we just keep a mapping of acl vectors
          # associated with a port and do not check for any repeat application.
          self.vpp.set_acl_list_on_interface(sw_if_index,
                                             input_acls, output_acls)
          self.port_vpp_acls[sw_if_index]['l34'] = acls
code_tokens: def _set_acls_on_vpp_port ( self , vpp_acls , sw_if_index ) : spoof_acl = self . spoof_filter_on_host ( ) input_acls = [ spoof_acl . out_idx ] output_acls = [ spoof_acl . in_idx ] if vpp_acls : for acl in vpp_acls : input_acls . append ( acl . out_idx ) output_acls . append ( acl . in_idx ) acls = input_acls + output_acls self . vpp . set_acl_list_on_interface ( sw_if_index , input_acls , output_acls ) self . port_vpp_acls [ sw_if_index ] [ 'l34' ] = acls
short_docstring: Build a vector of VPP ACLs and set it on the port
  Arguments
  vpp_acls - a list of VppAcl(in_idx, out_idx) namedtuples to be set
  on the interface.
short_docstring_tokens: Build a vector of VPP ACLs and set it on the port Arguments vpp_acls - a list of VppAcl ( in_idx out_idx ) namedtuples to be set on the interface .
comment: """Build a vector of VPP ACLs and set it on the port
  
          Arguments -
          vpp_acls - a list of VppAcl(in_idx, out_idx) namedtuples to be set
                     on the interface. An empty list '[]' deletes all user
                     defined acls from the interface and retains only the spoof
                     ACL
          """$SEP$# Initialize lists with anti-spoofing vpp acl indices$SEP$# input acl on vpp filters egress traffic from vm and viceversa$SEP$# in on vpp == out on vm$SEP$# out on vpp == in on vm$SEP$# Build the vpp ACL vector$SEP$# (najoy) At this point we just keep a mapping of acl vectors$SEP$# associated with a port and do not check for any repeat application.