Skip to content

Commit

Permalink
feat(ui): add refcount to bgp peer group table
Browse files Browse the repository at this point in the history
  • Loading branch information
fdomain committed Aug 5, 2024
1 parent eda0827 commit fe1ba15
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions netbox_cmdb/netbox_cmdb/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,26 @@ class Meta(NetBoxTable.Meta):


class BGPPeerGroupTable(NetBoxTable):
device = tables.LinkColumn()
name = tables.LinkColumn()
asn = tables.Column()
route_policy_in = tables.Column()
route_policy_out = tables.Column()
name = tables.Column(linkify=True)
device = tables.Column(linkify=True)
local_asn = tables.Column(linkify=True)
remote_asn = tables.Column(linkify=True)
route_policy_in = tables.Column(linkify=True)
route_policy_out = tables.Column(linkify=True)
maximum_prefixes = tables.Column()
refcount = tables.Column()

class Meta(NetBoxTable.Meta):
model = BGPPeerGroup
fields = (
"pk",
"name",
"device",
"local_asn",
"remote_asn",
"route_policy_in",
"route_policy_out",
"maximum_prefixes",
"refcount",
)


Expand Down

0 comments on commit fe1ba15

Please sign in to comment.