(self, policy, counters=None)
Set the chain policy to *policy*, which should either be a string
        or a Policy object.  If *counters* is not *None*, the chain counters
        are also adjusted. *Counters* is a list or tuple with two elements.
Set the chain policy to *policy*, which should either be a string
        or a Policy object.  If *counters* is not *None*, the chain counters
        are also adjusted. *Counters* is a list or tuple with two elements.
Set the chain policy to * policy * which should either be a string or a Policy object . If * counters * is not * None * the chain counters are also adjusted . * Counters * is a list or tuple with two elements .
def set_policy(self, policy, counters=None):
        """Set the chain policy to *policy*, which should either be a string
        or a Policy object.  If *counters* is not *None*, the chain counters
        are also adjusted. *Counters* is a list or tuple with two elements."""
        if isinstance(policy, Policy):
            policy = policy.name
        self.table.set_policy(self.name, policy, counters)
def set_policy ( self , policy , counters = None ) : if isinstance ( policy , Policy ) : policy = policy . name self . table . set_policy ( self . name , policy , counters )