Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

GET Monitoring Security Policy Device List #548

Closed
wants to merge 3 commits into from

Conversation

rtmooy
Copy link
Collaborator

@rtmooy rtmooy commented Apr 24, 2024

Pull Request summary:

Add support for monitoring security policy device list endpoint

Description of changes:

Add support for monitoring security policy device list endpoint
New unit test for monitoring security policy device list

Unit Test:

(vtest3.8) tester@SJC24-TBSEC-85-121:tests$ python3.8 test_monitoring_security_policy.py 
.
----------------------------------------------------------------------
Ran 1 test in 2.224s

OK
>>> device_list = session.endpoints.monitoring_security_policy.get_device_list()
/opt/venv/vtest3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.0.1.32'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
>>> device_list.data
{'zbfw_up': [], 'zbfw_down': [], 'ips_up': ['172.16.255.16'], 'ips_down': [], 'urlf_up': ['172.16.255.16'], 'urlf_down': [], 'amp_up': ['172.16.255.16'], 'amp_down': []}
>>> device_list.
device_list.construct(                device_list.get_ips_up(               device_list.model_construct(          device_list.model_parametrized_name(  device_list.parse_raw(
device_list.copy(                     device_list.get_urlf_down(            device_list.model_copy(               device_list.model_post_init(          device_list.schema(
device_list.data                      device_list.get_urlf_up(              device_list.model_dump(               device_list.model_rebuild(            device_list.schema_json(
device_list.dict(                     device_list.get_zbfw_down(            device_list.model_dump_json(          device_list.model_validate(           device_list.update_forward_refs(
device_list.from_orm(                 device_list.get_zbfw_up(              device_list.model_extra               device_list.model_validate_json(      device_list.validate(
device_list.get_amp_down(             device_list.json(                     device_list.model_fields              device_list.model_validate_strings(   
device_list.get_amp_up(               device_list.model_computed_fields     device_list.model_fields_set          device_list.parse_file(               
device_list.get_ips_down(             device_list.model_config              device_list.model_json_schema(        device_list.parse_obj(                
>>> device_list.get_amp_down()
[]
>>> device_list.get_amp_up()
['172.16.255.16']
>>> device_list.get_ips_down()
[]
>>> device_list.get_ips_up()
['172.16.255.16']
>>> device_list.get_urlf_down()
[]
>>> device_list.get_urlf_up()
['172.16.255.16']
>>> device_list.get_zbfw_down()
[]
>>> device_list.get_zbfw_up()
[]

Checklist:

  • Make sure to run pre-commit before committing changes
  • Make sure all checks have passed
  • PR description is clear and comprehensive
  • Mentioned the issue that this PR solves (if applicable)
  • Make sure you test the changes

@JimOverholt
Copy link
Collaborator

REPOSITORY MOVED TO NEW ORIGIN !

https://github.com/cisco-open/cisco-catalyst-wan-sdk

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants