davidban77 / gns3fy

Python library wrapper around GNS3 Server REST API
https://davidban77.github.io/gns3fy/
56 stars 28 forks source link

Make resolve node and port method for Link resource #92

Open davidban77 opened 3 years ago

davidban77 commented 3 years ago

Currently the information of the node and port is held under the attribute Link.nodes and it resembles the output of the API output, which doesn't show the name of the device or port.

Based on the create_link a method could be developed for a resolve method that generates attributes possibly like:

link.node_a
link.port_a
link.node_b
link.port_b