def add_access_list(self, accesslist, rank=None):
        """
        Add an access list to the match condition. Valid
        access list types are IPAccessList (v4 and v6),
        IPPrefixList (v4 and v6), AS Path, CommunityAccessList,
        ExtendedCommunityAccessList.
        """
        self.conditions.append(
            dict(access_list_ref=accesslist.href,
                 type='element',
                 rank=rank))
def add_access_list ( self , accesslist , rank = None ) : self . conditions . append ( dict ( access_list_ref = accesslist . href , type = 'element' , rank = rank ) )
Add an access list to the match condition. Valid
        access list types are IPAccessList (v4 and v6),
        IPPrefixList (v4 and v6), AS Path, CommunityAccessList,
        ExtendedCommunityAccessList.