Skip to content

Commit afdeac9

Browse files
authored
Release notes + version bump. (#2170)
* Release notes + version bump. * Update docker file due to breaking changes.
1 parent d8de796 commit afdeac9

File tree

3 files changed

+130
-23
lines changed

3 files changed

+130
-23
lines changed

Dockerfile

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
ARG PYTHON_VER
2-
32
FROM python:${PYTHON_VER}-slim
43

5-
# Install all OS package upgrades and dependencies needed to run Nautobot in production
6-
# hadolint ignore=DL3005,DL3008,DL3013
7-
RUN apt-get update && \
8-
apt-get upgrade -y && \
9-
apt-get install --no-install-recommends -y git mime-support curl libxml2 libmariadb3 openssl gcc musl-dev python3-dev && \
10-
apt-get autoremove -y && \
11-
apt-get clean all && \
12-
rm -rf /var/lib/apt/lists/* && \
13-
pip --no-cache-dir install --upgrade pip wheel
14-
15-
RUN pip install --upgrade pip
16-
17-
# Install Poetry manually via its installer script;
18-
# We might be using an older version of ntc-templates that includes an older version of Poetry
19-
# and CI and local development may have a newer version of Poetry
20-
# Since this is only used for development and we don't ship this container, pinning Poetry back is not expressly necessary
21-
# We also don't need virtual environments in container
22-
RUN which poetry || curl -sSL https://install.python-poetry.org | python3 -
23-
24-
# Add poetry install location to the $PATH
4+
# hadolint ignore=DL3008
5+
RUN set -eux; \
6+
export DEBIAN_FRONTEND=noninteractive; \
7+
apt-get update; \
8+
apt-get install --no-install-recommends -y \
9+
git \
10+
curl \
11+
libxml2 \
12+
libmariadb3 \
13+
openssl \
14+
build-essential \
15+
pkg-config \
16+
media-types \
17+
mailcap \
18+
; \
19+
rm -rf /var/lib/apt/lists/*
20+
21+
# Upgrade pip & wheel once
22+
RUN pip --no-cache-dir install --upgrade pip wheel
23+
24+
# Install Poetry (no venvs in container)
25+
RUN which poetry || curl -sSL https://install.python-poetry.org | python3 -
2526
ENV PATH="${PATH}:/root/.local/bin"
2627

2728
WORKDIR /local
@@ -30,6 +31,6 @@ COPY pyproject.toml poetry.lock README.md /local/
3031
RUN poetry config virtualenvs.create false \
3132
&& poetry install --no-interaction --no-ansi --no-root
3233

33-
# Do not break dependency caching before installing project
34+
# Copy project last to preserve layer caching
3435
COPY . .
3536
RUN poetry install
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Release Notes v8.0.0
2+
3+
## 🎉 Major Release Highlights
4+
5+
This major release introduces several **breaking changes** and significant improvements to ensure better consistency and maintainability across all templates.
6+
7+
## ⚠️ Breaking Changes
8+
9+
### Python Version Support
10+
* **Dropped Python 3.8 support** - Minimum Python version is now 3.9+ by @mjbear in https://github.com/networktocode/ntc-templates/pull/2154
11+
12+
### Field Name Standardization (Breaking Changes)
13+
* **Arista EOS**: Renamed `interface_up_time` to `last_link_flapped` in show interfaces by @mjbear in https://github.com/networktocode/ntc-templates/pull/2126
14+
* **Cisco NX-OS**: Multiple field renames in show interface for consistency by @Mikeg2881 in https://github.com/networktocode/ntc-templates/pull/2112:
15+
- Renamed error counters to standardized names
16+
- Renamed statistics fields for consistency
17+
- Updated packet counter field names
18+
* **Normalized PVID with VLAN_ID** across multiple templates by @mjbear in https://github.com/networktocode/ntc-templates/pull/2019
19+
20+
### Template Improvements with Schema Changes
21+
* **Huawei VRP**: Major updates to display vlan template with improved parsing by @evilmonkey19 in https://github.com/networktocode/ntc-templates/pull/2164
22+
23+
## 🚀 What's Changed
24+
25+
### New Templates
26+
* Add Cisco IOS show vlan group by @jfaulkner-fmr in https://github.com/networktocode/ntc-templates/pull/2093
27+
* Juniper JunOS show system configuration database usage by @jnicholson56 in https://github.com/networktocode/ntc-templates/pull/2087
28+
* Add Huawei VRP dir by @brian-s-cao in https://github.com/networktocode/ntc-templates/pull/2133
29+
* Add Huawei VRP virtual-cable-test by @evilmonkey19 in https://github.com/networktocode/ntc-templates/pull/2138
30+
* Add Huawei VRP display license verbose by @brian-s-cao in https://github.com/networktocode/ntc-templates/pull/2127
31+
* Add Huawei VRP display eth-trunk by @evilmonkey19 in https://github.com/networktocode/ntc-templates/pull/2139
32+
* Add Huawei SmartAX display ont-srvprofile gpon all by @evilmonkey19 in https://github.com/networktocode/ntc-templates/pull/2134
33+
* Add Linux iwconfig by @evilmonkey19 in https://github.com/networktocode/ntc-templates/pull/2122
34+
* Add Mikrotik RouterOS ip hotspot ip-binding print terse without-paging by @evilmonkey19 in https://github.com/networktocode/ntc-templates/pull/2149
35+
36+
### Enhanced Templates
37+
* Update Huawei VRP display lldp neighbor by @evilmonkey19 in https://github.com/networktocode/ntc-templates/pull/2104
38+
* Modify Juniper JunOS show rsvp interface by @jnicholson56 in https://github.com/networktocode/ntc-templates/pull/2095
39+
* Improve Huawei VRP display interface by @evilmonkey19 in https://github.com/networktocode/ntc-templates/pull/2137
40+
* Improve Huawei VRP display interface brief by @evilmonkey19 in https://github.com/networktocode/ntc-templates/pull/2140
41+
* Improve Alcatel AOS show lldp remote-system by @evilmonkey19 in https://github.com/networktocode/ntc-templates/pull/2064
42+
* Support Linux iwconfig monitor mode by @evilmonkey19 in https://github.com/networktocode/ntc-templates/pull/2160
43+
* Update Mikrotik RouterOS DHCP server lease templates by @evilmonkey19 in https://github.com/networktocode/ntc-templates/pull/2145 and https://github.com/networktocode/ntc-templates/pull/2146
44+
45+
### Bug Fixes & Improvements
46+
* Fix Arista EOS show version for containerlab cEOS by @gsnider2195 in https://github.com/networktocode/ntc-templates/pull/2169
47+
* Modify ASA show access-list PROTOCOL to accept numeric values by @mjbear in https://github.com/networktocode/ntc-templates/pull/2166
48+
* Include Nexus model suffix in show version by @mtinberg in https://github.com/networktocode/ntc-templates/pull/2161
49+
* Updated template to account for BFD echo mode by @mscain in https://github.com/networktocode/ntc-templates/pull/2163
50+
* Fix Arista port-channel member bug and support dense by @mjbear in https://github.com/networktocode/ntc-templates/pull/2143
51+
* Add lines for Arista cEOS version output by @mjbear in https://github.com/networktocode/ntc-templates/pull/2136
52+
* Update cisco_ios_show_interface_link by @Malvin3197 in https://github.com/networktocode/ntc-templates/pull/2128
53+
* Fix Huawei VRP display version template by @kribot-rch in https://github.com/networktocode/ntc-templates/pull/2150
54+
* Fix Huawei VRP display startup template by @ArthurCCT in https://github.com/networktocode/ntc-templates/pull/2151
55+
* Support Alcatel service service-using names with spaces by @jorlandobr in https://github.com/networktocode/ntc-templates/pull/2152
56+
* Fix date,vrf in Mikrotik interface print terse without paging by @dcop25 in https://github.com/networktocode/ntc-templates/pull/2156
57+
* Sanitize test data for Alcatel service-name-using by @jorlandobr in https://github.com/networktocode/ntc-templates/pull/2157
58+
59+
### Code Quality & Testing
60+
* Test for unused capture groups by @mjbear in https://github.com/networktocode/ntc-templates/pull/2155
61+
* Fix broken uppercase capture group test by @mjbear in https://github.com/networktocode/ntc-templates/pull/2144
62+
* Modify TextFSM pinned version via poetry by @mjbear in https://github.com/networktocode/ntc-templates/pull/2153
63+
* Dependabot security fixes and dependency updates by @mjbear in https://github.com/networktocode/ntc-templates/pull/2154
64+
65+
## 👥 New Contributors
66+
67+
* @jfaulkner-fmr made their first contribution in https://github.com/networktocode/ntc-templates/pull/2093
68+
* @Malvin3197 made their first contribution in https://github.com/networktocode/ntc-templates/pull/2128
69+
* @kribot-rch made their first contribution in https://github.com/networktocode/ntc-templates/pull/2150
70+
* @dcop25 made their first contribution in https://github.com/networktocode/ntc-templates/pull/2156
71+
* @ArthurCCT made their first contribution in https://github.com/networktocode/ntc-templates/pull/2151
72+
* @mscain made their first contribution in https://github.com/networktocode/ntc-templates/pull/2163
73+
* @mtinberg made their first contribution in https://github.com/networktocode/ntc-templates/pull/2161
74+
* @gsnider2195 made their first contribution in https://github.com/networktocode/ntc-templates/pull/2169
75+
76+
## 🔄 Migration Guide
77+
78+
### Python Version
79+
Ensure you are running Python 3.9 or higher before upgrading.
80+
81+
### Field Name Changes
82+
If you are using any of the following templates, update your code to use the new field names:
83+
84+
**Arista EOS show interfaces:**
85+
- `interface_up_time``last_link_flapped`
86+
87+
**Cisco NX-OS show interface:**
88+
- Multiple field renames for error counters and statistics (see PR #2112 for complete list)
89+
90+
**VLAN ID Normalization:**
91+
- `pvid` fields have been normalized to `vlan_id` across multiple templates
92+
93+
### Template Schema Updates
94+
Review your parsing logic if using:
95+
- Huawei VRP display vlan
96+
- Cisco NX-OS show interface
97+
98+
## 📈 Statistics
99+
100+
- **Total Changes**: 35 pull requests
101+
- **New Templates**: 9
102+
- **Enhanced Templates**: 12
103+
- **Bug Fixes**: 14
104+
- **New Contributors**: 8
105+
106+
**Full Changelog**: https://github.com/networktocode/ntc-templates/compare/v7.9.0...v8.0.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ntc_templates"
3-
version = "7.9.0"
3+
version = "8.0.0"
44
description = "TextFSM Templates for Network Devices, and Python wrapper for TextFSM's CliTable."
55
authors = ["Network to Code <[email protected]>"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)