jeremyschulman / aio-ipfabric

Python 3.8 asycnio client for IP Fabric
Apache License 2.0
6 stars 3 forks source link

V4 diagrams #39

Closed ghost closed 2 years ago

ghost commented 2 years ago

New updates. (Also made a change so that the client gets the latest loaded snapshot not the latest snapshot)

`from aioipfabric.mixins.diagramsV4 import IPFDiagramPathMixin ipf = IPFDiagramPathMixin() ipf.svg = True # For SVG instead of JSON

loop.run_until_complete(ipf.login()) path = loop.run_until_complete(ipf.path_unicast_lookup('10.47.117.108', '10.35.161.193', 'tcp')) path = loop.run_until_complete(ipf.path_host_to_gateway('10.47.117.112')) path = loop.run_until_complete(ipf.path_multicast_lookup('10.33.230.2', '233.1.1.1', 'tcp')) loop.run_until_complete(ipf.logout())`

ghost commented 2 years ago

Will add examples if you think this looks better.

jeremyschulman commented 2 years ago

@justinjeffery-ipf - thank you for your contribution!

jeremyschulman commented 2 years ago

merged and published on pypi.