diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index fe55d0a..6deccdd 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -31,3 +31,29 @@ jobs: cd programming_fundamentals/python_part_2 pip install -r requirements.txt python example1.py + - name: Test Programming Fundamentals Python Part 3 - ncclient + run: | + cd programming_fundamentals/python_part_3 + pip install -r requirements.txt + python api_ncclient_example.py + - name: Test Programming Fundamentals Python Part 3 - netmiko + run: | + cd programming_fundamentals/python_part_3 + pip install -r requirements.txt + python api_netmiko_example.py + - name: Test Programming Fundamentals Python Part 3 - pysnmp + run: | + cd programming_fundamentals/python_part_3 + pip install -r requirements.txt + python api_pysnmp_example.py + - name: Test Programming Fundamentals Python Part 3 - requests + run: | + cd programming_fundamentals/python_part_3 + pip install -r requirements.txt + python api_requests_example.py + - name: Test Programming Fundamentals Python Part 3 - data_library_exercises + run: | + cd programming_fundamentals/python_part_3 + pip install -r requirements.txt + python data_library_exercises.py + diff --git a/programming_fundamentals/python_part_3/api_pysnmp_example.py b/programming_fundamentals/python_part_3/api_pysnmp_example.py index 6963372..3c411ea 100644 --- a/programming_fundamentals/python_part_3/api_pysnmp_example.py +++ b/programming_fundamentals/python_part_3/api_pysnmp_example.py @@ -34,6 +34,7 @@ if errorIndication: # SNMP engine errors print(errorIndication) + print("Check to be sure you're connected to the VPN for the DevNet Sandbox.") else: if errorStatus: # SNMP agent errors print('%s at %s' % (errorStatus.prettyPrint(), diff --git a/programming_fundamentals/python_part_3/requirements.txt b/programming_fundamentals/python_part_3/requirements.txt index 2717eba..58939fa 100644 --- a/programming_fundamentals/python_part_3/requirements.txt +++ b/programming_fundamentals/python_part_3/requirements.txt @@ -3,3 +3,4 @@ netmiko>=3.3.2 pyyaml>=5.3.1 requests>=2.25.1 xmltodict>=0.12.0 +pysnmp>=4.4.12 \ No newline at end of file