'Check if the address pairs attribute is being updated.
Returns True if there is an update. This can be used to decide
if a port update notification should be sent to agents or third
party controllers.'

def is_address_pairs_attribute_updated(self, port, update_attrs):

    new_pairs = update_attrs.get(addr_pair.ADDRESS_PAIRS)
    if (new_pairs is None):
        return False
    old_pairs = port.get(addr_pair.ADDRESS_PAIRS)
    return (new_pairs != old_pairs)
