Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D469C04AB4 for ; Fri, 17 May 2019 11:09:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17F8720879 for ; Fri, 17 May 2019 11:09:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728623AbfEQLJc (ORCPT ); Fri, 17 May 2019 07:09:32 -0400 Received: from orbyte.nwl.cc ([151.80.46.58]:55684 "EHLO orbyte.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727689AbfEQLJb (ORCPT ); Fri, 17 May 2019 07:09:31 -0400 Received: from localhost ([::1]:40542 helo=tatos) by orbyte.nwl.cc with esmtp (Exim 4.91) (envelope-from ) id 1hRajy-00083m-4E; Fri, 17 May 2019 13:09:30 +0200 From: Phil Sutter To: Pablo Neira Ayuso Cc: Eric Garver , netfilter-devel@vger.kernel.org Subject: [nft PATCH 0/2] JSON schema for nftables.py Date: Fri, 17 May 2019 13:09:29 +0200 Message-Id: <20190517110931.14068-1-phil@nwl.cc> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org This is basically identical to the RFC sent earlier. The only change is in second patch: As suggested by Eric, 'traceback' module is standard so there's no need to import it conditionally. The schema is still in its minimalistic form, I decided to extend it in follow-up patches. Phil Sutter (2): py: Implement JSON validation in nftables module tests/py: Support JSON validation py/Makefile.am | 2 +- py/nftables.py | 30 ++++++++++++++++++++++++++++++ py/schema.json | 17 +++++++++++++++++ py/setup.py | 1 + tests/py/nft-test.py | 21 ++++++++++++++++++++- 5 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 py/schema.json -- 2.21.0