From nobody Wed Apr 26 19:24:39 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q682H2fmvz47BTg; Wed, 26 Apr 2023 19:24:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q682H25Qxz4CTh; Wed, 26 Apr 2023 19:24:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682537079; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xBD+pqawvSNH40ZIFbIEPhEhOA/mPLqyUZn6tXAqWGo=; b=lK2f9IllrHXjWLzW0FfLlfdr4QMsuxhoxCIg5yzWJ8cScV+urqJjwJk9mfdV9EzFzTv27T +f16Zx0Skc5VQ1JcsWm+CZKkqSJH+r/1bLm/EZd8+RCJNUHeySzRuo/5VQuCekEiumLRTG aewKSmcoyu5v1EUA2SlxdEocAEQXjNpzRd6AOQpZqg1CM/WxfXKSnAn8liYY92IuxchREx g4Bg115ydEt8AGO3RZC5X/Z8kJ8U2r8HXXuzmTu8h0uE0jsKr+t9BfJUfAWwF0dipS/aKn Nk53R7rtc9d6h8uOw1ISbIL1sJQg7ZQYLiOLWyR13PPG6olnPDGgy7fdYE6/Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682537079; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xBD+pqawvSNH40ZIFbIEPhEhOA/mPLqyUZn6tXAqWGo=; b=N+LboI4ttaDVnWdAGBy6K7xoZAmdJqF7Iq9Q+gf/I7r8ptNDCY6ILZtAM+t/NJ4okO20OI bStvS8yOIPUq4M4mzSJewtai11RGic10at+jxl00HQBfUaqBJEtgL8k0AOpSifR1MqrOLY pxGuqCtGTw6OuntGSNv48O5Hknz7r9bzGbxlqm2q6A5dGiIrVT1wi8EEsDNkcnMmBDXSD8 cpzAPYm8C5uoH1OE16UeeOodA/WH0JPj7TGsr6zgBBnm5MUIBG75rK+3pU6yRVCF+l+1Ch QRMv7YgZD3KVXtvYdnkYadpizArzyFEGxoMbE1Kg/pcLfWCkgKTBjxGUyyDVNw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682537079; a=rsa-sha256; cv=none; b=r4uqteGCnQbwcu9IF/PqsPOdwXA2Lm5sfx5lBqQaJR9GqdZMp+fUXxE1KTAbKDI4gwEn67 m3jPdyMTZPUFMwM7ym6BVWB6b5V+GNKUfPEH5iSRbptGZcLDDO5F2chnxpHs9/nhsX/aAv R7xiRblivcCOpSuJLpeWVzbottaWPUoJPQoC8zZHHHeMXobFifkcKb/gSqc52gUU5OVtUu zusNn7qgFtd08/VXavfYTvP3lMqor2HBECYIV3InKu8cjniTDv+bQTA5GC+uKb3oC44Fs6 xmlIwjDuRze0flG3UhGssB6JmZ/hbvPtCTOCmDoOyIMz25za3sSKjp/rQNdPXA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q682H18ZPznDN; Wed, 26 Apr 2023 19:24:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33QJOdBH098354; Wed, 26 Apr 2023 19:24:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33QJOdjT098353; Wed, 26 Apr 2023 19:24:39 GMT (envelope-from git) Date: Wed, 26 Apr 2023 19:24:39 GMT Message-Id: <202304261924.33QJOdjT098353@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dan Langille Subject: git: b22d25bf9948 - main - vrt/py-bps-restpy: New port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dvl X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b22d25bf994880256cb2db93121c64322a4d90b6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=b22d25bf994880256cb2db93121c64322a4d90b6 commit b22d25bf994880256cb2db93121c64322a4d90b6 Author: Dan Langille AuthorDate: 2023-04-26 19:20:51 +0000 Commit: Dan Langille CommitDate: 2023-04-26 19:24:30 +0000 vrt/py-bps-restpy: New port BreakingPoint REST API Python Wraper Module for interfacing to BreakingPoint appliance. Let's you connect to their appliances for simulating real-world legitimate traffic, DDoS, exploits, malware, and fuzzing. --- devel/Makefile | 1 + devel/py-bps-restpy/Makefile | 21 ++++++++++++++++++ devel/py-bps-restpy/distinfo | 3 +++ devel/py-bps-restpy/pkg-descr | 21 ++++++++++++++++++ devel/py-bps-restpy/pkg-plist | 51 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 97 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 12c00f08c31a..ba51bcce441b 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4359,6 +4359,7 @@ SUBDIR += py-boolean.py SUBDIR += py-boto SUBDIR += py-botocore + SUBDIR += py-bps-restpy SUBDIR += py-breathe SUBDIR += py-bsd SUBDIR += py-btest diff --git a/devel/py-bps-restpy/Makefile b/devel/py-bps-restpy/Makefile new file mode 100644 index 000000000000..77e9bfb5f3d3 --- /dev/null +++ b/devel/py-bps-restpy/Makefile @@ -0,0 +1,21 @@ +PORTNAME= bps_restpy +PORTVERSION= 9.0.2 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dvl@FreeBSD.org +COMMENT= BreakingPoint REST API Python Wraper +WWW= https://pypi.org/project/bps-restpy/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} + +USES= python:2.7+ +USE_PYTHON= concurrent distutils + +NO_ARCH= yes + +.include diff --git a/devel/py-bps-restpy/distinfo b/devel/py-bps-restpy/distinfo new file mode 100644 index 000000000000..aa2d46270070 --- /dev/null +++ b/devel/py-bps-restpy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1677770198 +SHA256 (bps_restpy-9.0.2.tar.gz) = f7e0e926f549e1a095019a16f198184b85791b6cc5e1a5ee7bc83aa4989f500c +SIZE (bps_restpy-9.0.2.tar.gz) = 70138 diff --git a/devel/py-bps-restpy/pkg-descr b/devel/py-bps-restpy/pkg-descr new file mode 100644 index 000000000000..74d0cba8a9d7 --- /dev/null +++ b/devel/py-bps-restpy/pkg-descr @@ -0,0 +1,21 @@ +Module for interfacing to BreakingPoint appliance. Let's you connect to their +appliances for simulating real-world legitimate traffic, DDoS, exploits, +malware, and fuzzing. + +# Login to BPS box +bps = BPS(bps_system, bpsuser, bpspass) +bps.login() + +print("Load a canned test: ") +bps.testmodel.load(canned_test_name) + +print("Reserve Ports") +for p in port_list: + bps.topology.reserve([{'slot': slot_number, 'port': p, 'group': 2}]) + + +print("Run test and Get Stats:") +test_id_json = bps.testmodel.run(modelname=canned_test_name, group=2) +testid = str( test_id_json["runid"] ) +run_id = 'TEST-' + testid +print("Test Run Id: %s"%run_id) diff --git a/devel/py-bps-restpy/pkg-plist b/devel/py-bps-restpy/pkg-plist new file mode 100644 index 000000000000..aa96aac2856a --- /dev/null +++ b/devel/py-bps-restpy/pkg-plist @@ -0,0 +1,51 @@ +%%PYTHON_SITELIBDIR%%/bps_restpy/__init__.py +%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/bps%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/bps%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/restPyWrapper%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/restPyWrapper%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/restPyWrapper3%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/restPyWrapper3%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps.py +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__init__.py +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsAdminRest%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsAdminRest%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsRest%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsRest%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsVEAdminRest%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsVEAdminRest%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/bpsAdminRest.py +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/bpsRest.py +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/bpsVEAdminRest.py +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsadmin_restore%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsadmin_restore%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsadmin_update%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsadmin_update%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsveadmin_addslot%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsveadmin_addslot%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_script%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_script%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/sample_bpsadmin_restore.py +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/sample_bpsadmin_update.py +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/sample_bpsveadmin_addslot.py +%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/sample_script.py +%%PYTHON_SITELIBDIR%%/bps_restpy/restPyWrapper.py +%%PYTHON_SITELIBDIR%%/bps_restpy/restPyWrapper3.py +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/Sample_AppSim_template.bpt +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s01_New_Reserve_Run%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s01_New_Reserve_Run%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s02_Load_Configure_Run_Report%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s02_Load_Configure_Run_Report%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s06_StrikeLists_and_Strikes%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s06_StrikeLists_and_Strikes%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/nn_sample.bpt +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s01_New_Reserve_Run.py +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s02_Load_Configure_Run_Report.py +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s03_Flow_SuperFlow_AppProfile.py +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s04_Configure_Network.py +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s05_RunCancel_EvaluateReport_and_ExportCapture.py +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s06_StrikeLists_and_Strikes.py +%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s07_TestModel_Run.py