From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B59F15DA for ; Thu, 24 Aug 2023 01:46:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FE29C4166B; Thu, 24 Aug 2023 01:46:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692841565; bh=QcxBPDj3EFvkzsVgWGRcZsaxw4CEy1HbhIOucoZS2DU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZdsbvsRE9H5Au13iYTDqjDHjU3D1UlP4Z7bZf3G3qq/aN2ZYvNmdz1YY+bl07S4wf 2/7KVsrLpG+eFEnJaXsAJsqEeqnn3X5smrbv50k/IEXuegTHIvg+SKIWnBP+y9PXLO sSp2mhui1rL8GhoE/hMSj/A/oa9yzZAuiP9QTyfoE0P5S/iyyBlXo7Y2eC9B0ayfHC 8dYZj/iEvknYYkGGWMJCeHjNdJwJX0E3ppE1l7F0Dyg4VZ0EsoxdLl44IqaE8U8iW0 9Air/KVqcPf/uWoZfOkbLXI9FTZ1ItQSO2pKGKSRRsnqTKaRjl/bEOggwjwmiKygEr BspCqy2Opgf9g== Date: Wed, 23 Aug 2023 18:46:03 -0700 From: Jakub Kicinski To: Donald Hunter Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Paolo Abeni , Jonathan Corbet , linux-doc@vger.kernel.org, Stanislav Fomichev , Arkadiusz Kubalewski , donald.hunter@redhat.com Subject: Re: [PATCH net-next v4 07/12] tools/net/ynl: Add support for netlink-raw families Message-ID: <20230823184603.7fda3b66@kernel.org> In-Reply-To: <20230823114202.5862-8-donald.hunter@gmail.com> References: <20230823114202.5862-1-donald.hunter@gmail.com> <20230823114202.5862-8-donald.hunter@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 23 Aug 2023 12:41:56 +0100 Donald Hunter wrote: > + def get_mcast_id(self, mcast_name, mcast_groups): > + if mcast_name not in mcast_groups: > + raise Exception(f'Multicast group "{mcast_name}" not present in the spec') > + return mcast_groups[mcast_name].value > + if you repost - missing extra empty line here > +class GenlProtocol(NetlinkProtocol): > + def __init__(self, family_name):