def compare_security_groups(server, specified_sg_names)
      actual_sg_names = with_openstack { server.security_groups }.collect { |sg| sg.name }

      unless actual_sg_names.sort == specified_sg_names.sort
        raise Bosh::Clouds::NotSupported,