@@ -122,10 +122,11 @@ def test_mtu(self):
122
122
# Eg. transit
123
123
if not hasattr (interface .connected_endpoint , 'device' ):
124
124
continue
125
-
125
+ z_device_name = interface . connected_endpoint . device . name
126
126
# If connected to a server, report it
127
127
if interface .connected_endpoint .device .device_role .slug == "server" :
128
- self .log_warning (interface , f"Server facing interface with MTU != 9192 on { interface .device .name } " )
128
+ self .log_failure (interface , f"[{ interface .device .site .slug } ] { z_device_name } switch interface "
129
+ "MTU invalid (should be 9192)" )
129
130
130
131
# Core links, connected to a network device
131
132
elif interface .connected_endpoint .device .device_role .slug in NETWORK_ROLES :
@@ -134,11 +135,14 @@ def test_mtu(self):
134
135
continue
135
136
# Report core links with different MTU on each side:
136
137
elif interface .connected_endpoint .mtu != interface .mtu :
137
- self .log_warning (interface , "Core link with MTU missmatch" )
138
+ self .log_warning (interface , f"[{ interface .device .site .slug } ] MTU mismatch on link between "
139
+ f"{ interface .device .name } ({ interface .mtu } ) and "
140
+ f"{ z_device_name } ({ interface .connected_endpoint .mtu } )" )
138
141
continue
139
142
140
143
# Report any other non-standard MTU
141
- self .log_warning (interface , f"Core link with invalid MTU on { interface .device .name } " )
144
+ self .log_warning (interface , f"[{ interface .device .site .slug } ] { interface .device .name } core link with "
145
+ f"invalid MTU ({ interface .mtu } )" )
142
146
143
147
def test_primary_ipv6 (self ):
144
148
"""Report servers that either have a missing primary_ip6 or have a primary_ip6 without a DNS name set.
@@ -203,7 +207,7 @@ def test_primary_ip_dns_match(self):
203
207
if not device .primary_ip4 .dns_name or not device .primary_ip6 .dns_name :
204
208
continue
205
209
if device .primary_ip4 .dns_name != device .primary_ip6 .dns_name :
206
- self .log_failure (device , "Primary IPv4 and IPv6 DNS name missmatch ({} vs. {})"
210
+ self .log_failure (device , "Primary IPv4 and IPv6 DNS name mismatch ({} vs. {})"
207
211
.format (device .primary_ip4 .dns_name , device .primary_ip6 .dns_name ))
208
212
continue
209
213
else :
0 commit comments