Skip to content

Commit 3b1004e

Browse files
susanhooksjeffkala
andauthored
prep for 1.8.1 release (#510)
* prep for 1.8.1 release * More IOS banner related fixes. (#509) * dual banner parser actual parser fix and empty banner fix * black * fixed docs * Update docs/admin/release_notes/version_1.8.md * Update docs/admin/release_notes/version_1.8.md --------- Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
1 parent 914a20e commit 3b1004e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1031
-905
lines changed

development_scripts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Developer script to generate markdown tables."""
2+
23
from jinja2 import Environment, BaseLoader, select_autoescape
34
from netutils.utils import _JINJA2_FUNCTION_MAPPINGS
45
from netutils import lib_mapper

docs/admin/release_notes/version_1.8.md

Lines changed: 6 additions & 0 deletions

flat_postprocess/oui_postprocess.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Python code used to postprocess Flat github action data related to OUI mappings."""
2+
23
import sys
34
import re
45
from urllib.request import urlopen

flat_postprocess/protocol_number_postprocess.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Python code used to postprocess Flat github action data related to Protocol mappings."""
2+
23
import csv
34
import os
45
import sys

flat_postprocess/protocol_postprocess.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Python code used to postprocess Flat github action data related to Protocol mappings."""
2+
23
import csv
34
import os
45
import sys

netutils/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Initialization file for library."""
22

3-
43
from importlib import metadata
54

65

netutils/bandwidth.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Functions for performing bandwidth calculations."""
2+
23
import re
34
import typing as t
45

netutils/banner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Functions for working with the banner configuration."""
2+
23
import re
34

45
from netutils.constants import CARET_C

netutils/config/clean.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Functions for working with configuration to clean the config."""
2+
23
# pylint: disable=anomalous-backslash-in-string
34

45
import re

netutils/config/conversion.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,11 @@ def paloalto_panos_clean_newlines(cfg: str) -> str:
114114
)
115115

116116
newlines_cleaned_cfg = paloalto_panos_newline_regex.sub(
117-
lambda match: match.group().replace("\n", " ")
118-
if not any(substring in match.group() for substring in paloalto_panos_no_newline_cleanup_match)
119-
else match.group(),
117+
lambda match: (
118+
match.group().replace("\n", " ")
119+
if not any(substring in match.group() for substring in paloalto_panos_no_newline_cleanup_match)
120+
else match.group()
121+
),
120122
cfg,
121123
)
122124

0 commit comments

Comments
 (0)