Skip to content

Commit 4452dfd

Browse files
author
Capirca Team
committed
Enhance logging. Add to the summarizer failure log
related to DSMO subnet size issues. "What is the network causing this failure?" PiperOrigin-RevId: 823644585
1 parent c34b7c8 commit 4452dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

capirca/lib/summarizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def ToDottedQuad(net, negate=False, nondsm=False):
120120
raise ValueError('Addresses larger than 32 bits '
121121
'are currently not supported.')
122122
if net.netmask.bit_length() not in (0, 32):
123-
raise ValueError('Subnet masks other than 0 or 32 '
123+
raise ValueError(f'Subnet masks({net}/{net.netmask}) other than 0 or 32 '
124124
'are currently not supported.')
125125
if negate:
126126
netmask = ~net.netmask

0 commit comments

Comments
 (0)