Skip to content

Commit 8c04c1e

Browse files
committed
Added built-in ixnetwork_restpy. Broken up all configuration classes into its own file.
1 parent c085e9a commit 8c04c1e

File tree

11,760 files changed

+2462670
-723
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

11,760 files changed

+2462670
-723
lines changed

Applets/CaptureRawTraffic/ConfigParameters/configs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ logLevel: info
1414
ports:
1515
- name: Host1
1616
port: 192.168.28.5, 1, 1
17+
#type: novusHundredGigLanFcoe
18+
#enableAutoNegotiation: false
19+
#ieeeL1Defaults: false
1720
packetCapture:
1821
enable: True
1922
rxMode: captureAndMeasure
@@ -23,6 +26,9 @@ ports:
2326

2427
- name: Host2
2528
port: 192.168.28.5, 1, 2
29+
#type: novusHundredGigLanFcoe
30+
#enableAutoNegotiation: false
31+
#ieeeL1Defaults: false
2632
packetCapture:
2733
enable: True
2834
rxMode: captureAndMeasure

Applets/CaptureRawTraffic/__init__.py

Whitespace-only changes.

Applets/CaptureRawTraffic/captureRawTraffic.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
import sys, traceback
22

3-
from ixNetworkDataModelConfig import ConfigIxNetworkRestPy
3+
from ixNetworkDataModel import ConfigIxNetworkRestPy
44
from keystackEnv import keystackObj
55

66
dataModelYamlFile = keystackObj.configParamsFileFullPath
77

88
try:
9-
mainObj = ConfigIxNetworkRestPy(dataModelFile=dataModelYamlFile,
9+
mainObj = ConfigIxNetworkRestPy(dataModelFile=dataModelYamlFile, dataModelObj=None,
1010
sessionName=None, sessionId=None, apiKey=None, clearConfig=True,
1111
logLevel='info', logFilename=None, keystackObj=keystackObj)
1212

1313
mainObj.ports.assignPorts()
1414
mainObj.portCapture.configure()
15+
1516
mainObj.closeAllTabs()
1617
mainObj.ngpf.configure()
1718
mainObj.ngpf.startAllProtocols()
@@ -24,18 +25,21 @@
2425
mainObj.trafficItem.start()
2526
mainObj.trafficItem.waitForTrafficCompletion(maxCounter=10)
2627
mainObj.portCapture.stop()
27-
mainObj.portCapture.getDataPlaneCaptureFile(writeCaptureToFile=False,
28-
amountOfPacketsToWrite=5,
29-
captureFileDestPath=keystackObj.moduleProperties['artifactsRepo'])
30-
28+
captureFilenames = mainObj.portCapture.getDataPlaneCaptureFile(
29+
writeCaptureToFile=False,
30+
amountOfPacketsToWrite=5,
31+
captureFileDestPath=keystackObj.moduleProperties['artifactsRepo'])
3132

32-
if mainObj.configs['releasePorts']:
33+
print(f'\ncaptureFilenames: {captureFilenames}')
34+
35+
if mainObj.configs.get('releasePorts', False):
3336
mainObj.ports.releasePorts()
3437

35-
if mainObj.configs['deleteSession']:
38+
if mainObj.configs.get('deleteSession', True):
3639
mainObj.deleteSession()
37-
40+
3841
except Exception as errMsg:
42+
print(f'\nError: {traceback.format_exc(None, errMsg)}')
3943
if 'mainObj' in locals():
4044
mainObj.logFailed(traceback.format_exc(None, errMsg))
4145

Applets/__init__.py

Whitespace-only changes.

IxNetworkRestpy/bin/normalizer

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/local/python3.10.0/bin/python3.10
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
from charset_normalizer.cli.normalizer import cli_detect
6+
if __name__ == '__main__':
7+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8+
sys.exit(cli_detect())

IxNetworkRestpy/bin/wsdump

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/local/python3.10.0/bin/python3.10
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
from websocket._wsdump import main
6+
if __name__ == '__main__':
7+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8+
sys.exit(main())
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
This package contains a modified version of ca-bundle.crt:
2+
3+
ca-bundle.crt -- Bundle of CA Root Certificates
4+
5+
Certificate data from Mozilla as of: Thu Nov 3 19:04:19 2011#
6+
This is a bundle of X.509 certificates of public Certificate Authorities
7+
(CA). These were automatically extracted from Mozilla's root certificates
8+
file (certdata.txt). This file can be found in the mozilla source tree:
9+
https://hg.mozilla.org/mozilla-central/file/tip/security/nss/lib/ckfw/builtins/certdata.txt
10+
It contains the certificates in PEM format and therefore
11+
can be directly used with curl / libcurl / php_curl, or with
12+
an Apache+mod_ssl webserver for SSL client authentication.
13+
Just configure this file as the SSLCACertificateFile.#
14+
15+
***** BEGIN LICENSE BLOCK *****
16+
This Source Code Form is subject to the terms of the Mozilla Public License,
17+
v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain
18+
one at http://mozilla.org/MPL/2.0/.
19+
20+
***** END LICENSE BLOCK *****
21+
@(#) $RCSfile: certdata.txt,v $ $Revision: 1.80 $ $Date: 2011/11/03 15:11:58 $
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
Metadata-Version: 2.1
2+
Name: certifi
3+
Version: 2023.5.7
4+
Summary: Python package for providing Mozilla's CA Bundle.
5+
Home-page: https://github.com/certifi/python-certifi
6+
Author: Kenneth Reitz
7+
Author-email: [email protected]
8+
License: MPL-2.0
9+
Project-URL: Source, https://github.com/certifi/python-certifi
10+
Platform: UNKNOWN
11+
Classifier: Development Status :: 5 - Production/Stable
12+
Classifier: Intended Audience :: Developers
13+
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
14+
Classifier: Natural Language :: English
15+
Classifier: Programming Language :: Python
16+
Classifier: Programming Language :: Python :: 3
17+
Classifier: Programming Language :: Python :: 3 :: Only
18+
Classifier: Programming Language :: Python :: 3.6
19+
Classifier: Programming Language :: Python :: 3.7
20+
Classifier: Programming Language :: Python :: 3.8
21+
Classifier: Programming Language :: Python :: 3.9
22+
Classifier: Programming Language :: Python :: 3.10
23+
Classifier: Programming Language :: Python :: 3.11
24+
Requires-Python: >=3.6
25+
License-File: LICENSE
26+
27+
Certifi: Python SSL Certificates
28+
================================
29+
30+
Certifi provides Mozilla's carefully curated collection of Root Certificates for
31+
validating the trustworthiness of SSL certificates while verifying the identity
32+
of TLS hosts. It has been extracted from the `Requests`_ project.
33+
34+
Installation
35+
------------
36+
37+
``certifi`` is available on PyPI. Simply install it with ``pip``::
38+
39+
$ pip install certifi
40+
41+
Usage
42+
-----
43+
44+
To reference the installed certificate authority (CA) bundle, you can use the
45+
built-in function::
46+
47+
>>> import certifi
48+
49+
>>> certifi.where()
50+
'/usr/local/lib/python3.7/site-packages/certifi/cacert.pem'
51+
52+
Or from the command line::
53+
54+
$ python -m certifi
55+
/usr/local/lib/python3.7/site-packages/certifi/cacert.pem
56+
57+
Enjoy!
58+
59+
.. _`Requests`: https://requests.readthedocs.io/en/master/
60+
61+
Addition/Removal of Certificates
62+
--------------------------------
63+
64+
Certifi does not support any addition/removal or other modification of the
65+
CA trust store content. This project is intended to provide a reliable and
66+
highly portable root of trust to python deployments. Look to upstream projects
67+
for methods to use alternate trust.
68+
69+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
certifi-2023.5.7.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2+
certifi-2023.5.7.dist-info/LICENSE,sha256=oC9sY4-fuE0G93ZMOrCF2K9-2luTwWbaVDEkeQd8b7A,1052
3+
certifi-2023.5.7.dist-info/METADATA,sha256=fpDUR-Vqju0gWBVplvFKNISMUn1UqTzr6698ttTzSLo,2190
4+
certifi-2023.5.7.dist-info/RECORD,,
5+
certifi-2023.5.7.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
6+
certifi-2023.5.7.dist-info/top_level.txt,sha256=KMu4vUCfsjLrkPbSNdgdekS-pVJzBAJFO__nI8NF6-U,8
7+
certifi/__init__.py,sha256=q5ePznlfOw-XYIOV6RTnh45yS9haN-Nb1d__4QXc3g0,94
8+
certifi/__main__.py,sha256=xBBoj905TUWBLRGANOcf7oi6e-3dMP4cEoG9OyMs11g,243
9+
certifi/__pycache__/__init__.cpython-310.pyc,,
10+
certifi/__pycache__/__main__.cpython-310.pyc,,
11+
certifi/__pycache__/core.cpython-310.pyc,,
12+
certifi/cacert.pem,sha256=swFTXcpJHZgU6ij6oyCsehnQ9dlCN5lvoKO1qTZDJRQ,278952
13+
certifi/core.py,sha256=lhewz0zFb2b4ULsQurElmloYwQoecjWzPqY67P8T7iM,4219
14+
certifi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0

0 commit comments

Comments
 (0)