Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausHolbechArista committed Sep 20, 2024
1 parent 8343e3e commit accdb1e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions python-avd/pyavd/api/interface_descriptions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ def connected_endpoints_ethernet_interface(self, data: InterfaceDescriptionData)
Build a connected endpoint Ethernet interface description.
If a jinja template is configured, use it.
If not, use the adapter.description as a format string template.
If not, use the adapter.description as a format string template if set.
Finally fall back to default templates depending on this being a network_port or not.
Available data:
- peer
Expand Down Expand Up @@ -215,11 +216,13 @@ def connected_endpoints_port_channel_interface(self, data: InterfaceDescriptionD
Build a connected endpoint Port-channel description.
If a jinja template is configured, use it.
If not, return the <adapter.description>_<port_channel_description> or
default to <PEER>_<adapter_port_channel_description>
If not, use the port_channel.description as a format string template if set.
Finally fall back to default templates depending on this being a network_port or not.
Available data:
- peer
- peer_interface
- peer_type
- description
- port_channel_id
- port_channel_description
Expand Down

0 comments on commit accdb1e

Please sign in to comment.