Skip to content

Commit 2097256

Browse files
authored
Merge pull request #581 from networktocode/develop
1.10.0 Release
2 parents dd1597b + 548ca53 commit 2097256

28 files changed

+935
-95
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# v1.10 Release Notes
2+
3+
## Release Overview
4+
5+
- Added Functionality to ip_network filter to support method calls with kwargs.
6+
- Fix configuration parsers to allow newlines, no longer auto strip all newlines.
7+
8+
## [v1.10.0] 2024-09
9+
10+
### Added
11+
- [534](https://github.com/networktocode/netutils/pull/534) Extend ip_network extension to support method calls with kwargs.
12+
13+
### Changed
14+
- [570](https://github.com/networktocode/netutils/pull/570) OUI File Updates.
15+
- [571](https://github.com/networktocode/netutils/pull/571) PROTOCOL File Updates.
16+
17+
### Fixed
18+
19+
- [569](https://github.com/networktocode/netutils/pull/569) Fix banner parsers auto striping all newlines. Allow newlines in banners.
20+
- [574](https://github.com/networktocode/netutils/pull/574) Fix ntc_template reverse mapping for cisco xe.

docs/user/lib_mapper/ntctemplates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
| cisco_s300 || cisco_s300 |
3434
| cisco_tp || cisco_tp |
3535
| cisco_wlc || cisco_wlc |
36-
| cisco_xe || cisco_ios |
36+
| cisco_xe || cisco_xe |
3737
| cisco_xr || cisco_xr |
3838
| cloudgenix_ion || cloudgenix_ion |
3939
| coriant || coriant |

docs/user/lib_mapper/ntctemplates_reverse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
| cisco_s300 || cisco_s300 |
3434
| cisco_tp || cisco_tp |
3535
| cisco_wlc || cisco_wlc |
36+
| cisco_xe || cisco_ios |
3637
| cisco_xr || cisco_xr |
3738
| cloudgenix_ion || cloudgenix_ion |
3839
| coriant || coriant |

netutils/config/parser.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def _build_banner(self, config_line: str) -> t.Optional[str]:
223223
line = "\n".join(banner_config)
224224
if line.endswith("^C"):
225225
banner, end, _ = line.rpartition("^C")
226-
line = banner.rstrip() + end
226+
line = banner + end
227227
self._update_config_lines(line)
228228
self._current_parents = self._current_parents[:-1]
229229
try:
@@ -1310,7 +1310,7 @@ def _build_banner(self, config_line: str) -> t.Optional[str]:
13101310
line = "\n".join(banner_config)
13111311
if line.endswith(self.delimiter):
13121312
banner, end, _ = line.rpartition(self.delimiter)
1313-
line = banner.rstrip() + end
1313+
line = banner + end
13141314
self._update_config_lines(line)
13151315
self._current_parents = self._current_parents[:-1]
13161316
try:
@@ -1481,7 +1481,7 @@ def _build_banner(self, config_line: str) -> t.Optional[str]:
14811481
line = "\n".join(banner_config)
14821482
if line.endswith("^C"):
14831483
banner, end, _ = line.rpartition("^C")
1484-
line = banner.rstrip() + end
1484+
line = banner + end
14851485
self._update_config_lines(line.strip())
14861486
self._current_parents = self._current_parents[:-1]
14871487
try:
@@ -1591,7 +1591,7 @@ def _build_banner(self, config_line: str) -> t.Optional[str]:
15911591
line = "\n".join(banner_config)
15921592
if line.endswith(self.banner_end):
15931593
banner, end, _ = line.rpartition(self.banner_end)
1594-
line = banner.rstrip() + end
1594+
line = banner + end
15951595
self._update_config_lines(line)
15961596
self._current_parents = self._current_parents[:-1]
15971597
try:
@@ -1671,7 +1671,7 @@ def _build_banner(self, config_line: str) -> t.Optional[str]:
16711671
line = "\n".join(banner_config)
16721672
if line.endswith(self.delimiter):
16731673
banner, end, _ = line.rpartition(self.delimiter)
1674-
line = banner.rstrip() + end
1674+
line = banner + end
16751675
self._update_config_lines(line)
16761676
self._current_parents = self._current_parents[:-1]
16771677
try:

0 commit comments

Comments
 (0)