'Check security group member updated or not.
This method returns a flag which indicates request notification
is required and does not perform notification itself.
It is because another changes for the port may require notification.'

def is_security_group_member_updated(self, context, original_port, updated_port):

    need_notify = False
    if ((original_port['fixed_ips'] != updated_port['fixed_ips']) or (original_port['mac_address'] != updated_port['mac_address']) or (not helpers.compare_elements(original_port.get(ext_sg.SECURITYGROUPS), updated_port.get(ext_sg.SECURITYGROUPS)))):
        need_notify = True
    return need_notify
