(self)
Port policies for this Router.
        :return: a string describing the policy
Port policies for this Router.
        :return: a string describing the policy
Port policies for this Router . : return : a string describing the policy
def policy(self):
        """
        Port policies for this Router.
        :return: a string describing the policy
        """
        if self.accepted_ports:
            return 'accept ' + ','.join(map(str, self.accepted_ports))
        elif self.rejected_ports:
            return 'reject ' + ','.join(map(str, self.rejected_ports))
        else:
            return ''
def policy ( self ) : if self . accepted_ports : return 'accept ' + ',' . join ( map ( str , self . accepted_ports ) ) elif self . rejected_ports : return 'reject ' + ',' . join ( map ( str , self . rejected_ports ) ) else : return ''