31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
From 70445d45ad0f9238b87981016a723ee9470bf8fe Mon Sep 17 00:00:00 2001
|
|
From: Chris PeBenito <pebenito@ieee.org>
|
|
Date: Wed, 5 Dec 2018 14:38:14 -0500
|
|
Subject: [PATCH 193/212] sediff: Fix bug in rendering modified nodecons.
|
|
|
|
---
|
|
sediff | 7 +++----
|
|
1 file changed, 3 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/sediff b/sediff
|
|
index 515208e..372bb5a 100755
|
|
--- a/sediff
|
|
+++ b/sediff
|
|
@@ -1328,10 +1328,9 @@ try:
|
|
print(" - {0}".format(n))
|
|
if diff.modified_nodecons and not args.stats:
|
|
print(" Modified Nodecons: {0}".format(len(diff.modified_nodecons)))
|
|
- for con, added_context, removed_context in sorted(diff.modified_nodecons,
|
|
- key=lambda x: x.rule):
|
|
- print(" * nodecon {0.address} {0.netmask} +[{1}] -[{2}];".format(
|
|
- con, added_context, removed_context))
|
|
+ for entry in sorted(diff.modified_nodecons, key=lambda x: x.rule):
|
|
+ print(" * nodecon {0} +[{1.added_context}] -[{1.removed_context}];".format(
|
|
+ entry.rule.network.with_netmask.replace("/", " "), entry))
|
|
|
|
print()
|
|
del diff.added_nodecons
|
|
--
|
|
2.19.1
|
|
|