Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable endpoint ordering in Peering table until fixed #116

Merged
merged 3 commits into from
Aug 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions nautobot_bgp_models/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,15 @@ class PeeringTable(StatusTableMixin, BaseTable):
viewname="plugins:nautobot_bgp_models:peering",
args=[A("pk")],
text=str,
orderable=False,
)

endpoint_a = tables.LinkColumn(
verbose_name="Endpoint", text=lambda x: str(x.endpoint_a.local_ip) if x.endpoint_a else None
verbose_name="Endpoint", text=lambda x: str(x.endpoint_a.local_ip) if x.endpoint_a else None, orderable=False
)

endpoint_z = tables.LinkColumn(
verbose_name="Endpoint", text=lambda x: str(x.endpoint_z.local_ip) if x.endpoint_z else None
verbose_name="Endpoint", text=lambda x: str(x.endpoint_z.local_ip) if x.endpoint_z else None, orderable=False
)
actions = ButtonsColumn(model=models.Peering)

Expand Down