diff --git a/netbox_cmdb/netbox_cmdb/models/route_policy.py b/netbox_cmdb/netbox_cmdb/models/route_policy.py index 033a25e..600a56c 100644 --- a/netbox_cmdb/netbox_cmdb/models/route_policy.py +++ b/netbox_cmdb/netbox_cmdb/models/route_policy.py @@ -27,7 +27,7 @@ class RoutePolicy(ChangeLoggedModel): objects = RestrictedQuerySet.as_manager() def __str__(self): - return str(self.name) + return f"{self.device}-{self.name}" def __repr__(self): return str(self.name) diff --git a/netbox_cmdb/netbox_cmdb/models/snmp.py b/netbox_cmdb/netbox_cmdb/models/snmp.py index 10bba6f..8099117 100644 --- a/netbox_cmdb/netbox_cmdb/models/snmp.py +++ b/netbox_cmdb/netbox_cmdb/models/snmp.py @@ -44,4 +44,4 @@ class Meta: verbose_name_plural = "SNMP" def __str__(self): - return f"SNMP configuration of {self.device.name}" + return f"{self.device.name}-SNMP"