@@ -33,7 +33,7 @@ class AutonomousSystemTable(StatusTableMixin, BaseTable):
3333
3434 pk = ToggleColumn ()
3535 asn = tables .TemplateColumn (template_code = ASN_LINK , verbose_name = "ASN" )
36- provider = tables .LinkColumn ( )
36+ provider = tables .Column ( linkify = True )
3737 tags = TagColumn (url_name = "plugins:nautobot_bgp_models:autonomoussystem_list" )
3838 actions = ButtonsColumn (model = models .AutonomousSystem )
3939 asn_asdot = tables .Column (accessor = A ("asn_asdot" ), linkify = True , order_by = A ("asn" ), verbose_name = "ASN ASDOT" )
@@ -48,10 +48,10 @@ class AutonomousSystemRangeTable(StatusTableMixin, BaseTable):
4848 """Table representation of AutonomousSystem records."""
4949
5050 pk = ToggleColumn ()
51- name = tables .LinkColumn ( )
52- asn_min = tables .LinkColumn ( )
53- asn_max = tables .LinkColumn ( )
54- tenant = tables .LinkColumn ( )
51+ name = tables .Column ( linkify = True )
52+ asn_min = tables .Column ( linkify = True )
53+ asn_max = tables .Column ( linkify = True )
54+ tenant = tables .Column ( linkify = True )
5555 tags = TagColumn (url_name = "plugins:nautobot_bgp_models:autonomoussystemrange_list" )
5656 actions = ButtonsColumn (model = models .AutonomousSystemRange )
5757
@@ -69,9 +69,9 @@ class BGPRoutingInstanceTable(StatusTableMixin, BaseTable):
6969 args = [A ("pk" )],
7070 text = str ,
7171 )
72- device = tables .LinkColumn ( )
73- autonomous_system = tables .LinkColumn ( )
74- router_id = tables .LinkColumn ( )
72+ device = tables .Column ( linkify = True )
73+ autonomous_system = tables .Column ( linkify = True )
74+ router_id = tables .Column ( linkify = True )
7575 tags = TagColumn (url_name = "plugins:nautobot_bgp_models:bgproutinginstance_list" )
7676 actions = ButtonsColumn (model = models .BGPRoutingInstance )
7777
@@ -93,16 +93,16 @@ class PeerGroupTable(BaseTable):
9393 """Table representation of PeerGroup records."""
9494
9595 pk = ToggleColumn ()
96- name = tables .LinkColumn ( )
97- peergroup_template = tables .LinkColumn ( )
98- routing_instance = tables .LinkColumn ( )
99- vrf = tables .LinkColumn ( )
96+ name = tables .Column ( linkify = True )
97+ peergroup_template = tables .Column ( linkify = True )
98+ routing_instance = tables .Column ( linkify = True )
99+ vrf = tables .Column ( linkify = True )
100100 enabled = BooleanColumn ()
101101 role = ColoredLabelColumn ()
102- autonomous_system = tables .LinkColumn ( )
103- secret = tables .LinkColumn ( )
104- source_ip = tables .LinkColumn ( )
105- source_interface = tables .LinkColumn ( )
102+ autonomous_system = tables .Column ( linkify = True )
103+ secret = tables .Column ( linkify = True )
104+ source_ip = tables .Column ( linkify = True )
105+ source_interface = tables .Column ( linkify = True )
106106 tags = TagColumn (url_name = "plugins:nautobot_bgp_models:peergroup_list" )
107107
108108 actions = ButtonsColumn (model = models .PeerGroup )
@@ -140,11 +140,11 @@ class PeerGroupTemplateTable(BaseTable):
140140 """Table representation of PeerGroup records."""
141141
142142 pk = ToggleColumn ()
143- name = tables .LinkColumn ( )
143+ name = tables .Column ( linkify = True )
144144 enabled = BooleanColumn ()
145145 role = ColoredLabelColumn ()
146- autonomous_system = tables .LinkColumn ( )
147- secret = tables .LinkColumn ( )
146+ autonomous_system = tables .Column ( linkify = True )
147+ secret = tables .Column ( linkify = True )
148148 actions = ButtonsColumn (model = models .PeerGroupTemplate )
149149
150150 class Meta (BaseTable .Meta ):
@@ -172,46 +172,49 @@ class PeerEndpointTable(BaseTable):
172172 """Table representation of PeerEndpoint records."""
173173
174174 pk = ToggleColumn ()
175- id = tables .LinkColumn ( )
176- routing_instance = tables .LinkColumn ( )
175+ id = tables .Column ( linkify = True )
176+ routing_instance = tables .Column ( linkify = True )
177177 role = ColoredLabelColumn ()
178- source_ip = tables .LinkColumn ()
179- source_interface = tables .LinkColumn ()
180- autonomous_system = tables .LinkColumn ()
181- remote_autonomous_system = tables .LinkColumn ()
182- peer = tables .LinkColumn ()
183- peering = tables .LinkColumn ()
184- vrf = tables .LinkColumn ()
185- peer_group = tables .LinkColumn ()
178+ source_ip = tables .Column (linkify = True )
179+ source_interface = tables .Column (linkify = True )
180+ local_ip = tables .Column (linkify = True )
181+ autonomous_system = tables .Column (linkify = True )
182+ # remote_autonomous_system = tables.Column(linkify=True)
183+ peer = tables .Column (linkify = True )
184+ peering = tables .Column (linkify = True )
185+ vrf = tables .Column (linkify = True )
186+ peer_group = tables .Column (linkify = True )
186187 tags = TagColumn (url_name = "plugins:nautobot_bgp_models:peerendpoint_list" )
187188 # actions = ButtonsColumn(model=models.PeerEndpoint)
188189
189190 class Meta (BaseTable .Meta ):
190191 model = models .PeerEndpoint
191192 fields = (
192- "pk" ,
193+ # "pk",
193194 "id" ,
194195 "routing_instance" ,
195196 "role" ,
196197 "source_ip" ,
197198 "source_interface" ,
199+ "local_ip" ,
198200 "autonomous_system" ,
199- "remote_autonomous_system" ,
201+ # "remote_autonomous_system",
200202 "peer" ,
201203 "peering" ,
202204 "vrf" ,
203205 "peer_group" ,
204206 "tags" ,
205207 )
206208 default_columns = (
207- "pk" ,
209+ # "pk",
208210 "id" ,
209211 "routing_instance" ,
210212 "role" ,
211213 "source_ip" ,
214+ "local_ip" ,
212215 "source_interface" ,
213216 "autonomous_system" ,
214- "remote_autonomous_system" ,
217+ # "remote_autonomous_system",
215218 "peer" ,
216219 "peering" ,
217220 "vrf" ,
@@ -256,14 +259,10 @@ class AddressFamilyTable(BaseTable):
256259 """Table representation of AddressFamily records."""
257260
258261 pk = ToggleColumn ()
259- address_family = tables .LinkColumn (
260- viewname = "plugins:nautobot_bgp_models:addressfamily" ,
261- args = [A ("pk" )],
262- text = str ,
263- )
264- routing_instance = tables .LinkColumn ()
262+ address_family = tables .Column (linkify = True , accessor = "display" )
263+ routing_instance = tables .Column (linkify = True )
265264 afi_safi = tables .Column ()
266- vrf = tables .LinkColumn ( )
265+ vrf = tables .Column ( linkify = True )
267266 actions = ButtonsColumn (model = models .AddressFamily )
268267
269268 class Meta (BaseTable .Meta ):
@@ -294,7 +293,7 @@ class PeerGroupAddressFamilyTable(BaseTable):
294293 args = [A ("pk" )],
295294 text = str ,
296295 )
297- peer_group = tables .LinkColumn ( )
296+ peer_group = tables .Column ( linkify = True )
298297 afi_safi = tables .Column ()
299298 actions = ButtonsColumn (model = models .PeerGroupAddressFamily )
300299
@@ -330,7 +329,7 @@ class PeerEndpointAddressFamilyTable(BaseTable):
330329 args = [A ("pk" )],
331330 text = str ,
332331 )
333- peer_endpoint = tables .LinkColumn ( )
332+ peer_endpoint = tables .Column ( linkify = True )
334333 afi_safi = tables .Column ()
335334 actions = ButtonsColumn (model = models .PeerEndpointAddressFamily )
336335
0 commit comments