Not intended for Production environments
This script will allow you to change VLANs based on the vendor MAC address.
git clone https://github.com/robschn/mac-change-vlan/
cd mac-change-vlan/
python -m venv ven
source ven/bin/activate
pip install requirements.txt
python mac-change.py
.Vendor MAC for the devices. Must be HHHH.HH format: 0000.0c
VLAN would you like the devices to be in: 10
IP of the switch the devices connect to: 192.168.1.1
Logging in now... Searching for MAC address...
Found these interfaces: ['Gi1/0/3', 'Gi1/0/5', 'Gi1/0/9', 'Gi1/0/11'] ``` If the interface is a trunk:
Gi1/0/3
Skipping, port is a trunk.
Else: ``` Gi1/0/5 Modifying, please wait... Done!
Gi1/0/9 Modifying, please wait... Done!
Gi1/0/11
Modifying, please wait...
Done!
6. After the interfaces are done, it will write memory and exit:
Writing to memory, please wait...
VLAN changes completed! Exiting program... ```
Python 3
Netmiko
Bumps cryptography from 3.3.2 to 39.0.1.
Sourced from cryptography's changelog.
39.0.1 - 2023-02-07
* **SECURITY ISSUE** - Fixed a bug where ``Cipher.update_into`` accepted Python buffer protocol objects, but allowed immutable buffers. **CVE-2023-23931** * Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 3.0.8.
.. _v39-0-0:
39.0.0 - 2023-01-01
- BACKWARDS INCOMPATIBLE: Support for OpenSSL 1.1.0 has been removed. Users on older version of OpenSSL will need to upgrade.
- BACKWARDS INCOMPATIBLE: Dropped support for LibreSSL < 3.5. The new minimum LibreSSL version is 3.5.0. Going forward our policy is to support versions of LibreSSL that are available in versions of OpenBSD that are still receiving security support.
- BACKWARDS INCOMPATIBLE: Removed the
encode_point
andfrom_encoded_point
methods on :class:~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicNumbers
, which had been deprecated for several years. :meth:~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey.public_bytes
and :meth:~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey.from_encoded_point
should be used instead.- BACKWARDS INCOMPATIBLE: Support for using MD5 or SHA1 in :class:
~cryptography.x509.CertificateBuilder
, other X.509 builders, and PKCS7 has been removed.- BACKWARDS INCOMPATIBLE: Dropped support for macOS 10.10 and 10.11, macOS users must upgrade to 10.12 or newer.
- ANNOUNCEMENT: The next version of
cryptography
(40.0) will change the way we link OpenSSL. This will only impact users who buildcryptography
from source (i.e., not from awheel
), and specify their own version of OpenSSL. For those users, theCFLAGS
,LDFLAGS
,INCLUDE
,LIB
, andCRYPTOGRAPHY_SUPPRESS_LINK_FLAGS
environment variables will no longer be respected. Instead, users will need to configure their buildsas documented here
_.- Added support for :ref:
disabling the legacy provider in OpenSSL 3.0.x<legacy-provider>
.- Added support for disabling RSA key validation checks when loading RSA keys via :func:
~cryptography.hazmat.primitives.serialization.load_pem_private_key
, :func:~cryptography.hazmat.primitives.serialization.load_der_private_key
, and :meth:~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers.private_key
. This speeds up key loading but is :term:unsafe
if you are loading potentially attacker supplied keys.- Significantly improved performance for :class:
~cryptography.hazmat.primitives.ciphers.aead.ChaCha20Poly1305
... (truncated)
d6951dc
changelog + security fix backport (#8231)138da90
workaround scapy bug in downstream tests (#8218) (#8228)69527bc
bookworm is py311 now (#8200)111deef
backport main branch CI to 39.0.x (#8153)338a65a
39.0.0 version bump (#7954)84a3cd7
automatically download and upload circleci wheels (#7949)525c0b3
Type annotate release.py (#7951)46d2a94
Use the latest 3.10 release when wheel building (#7953)f150dc1
fix CI to work with ubuntu 22.04 (#7950)8867724
fix README for python3 (#7947)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps setuptools from 40.8.0 to 65.5.1.
Sourced from setuptools's releases.
v65.5.1
No release notes provided.
v65.5.0
No release notes provided.
v65.4.1
No release notes provided.
v65.4.0
No release notes provided.
v65.3.0
No release notes provided.
v65.2.0
No release notes provided.
v65.1.1
No release notes provided.
v65.1.0
No release notes provided.
v65.0.2
No release notes provided.
v65.0.1
No release notes provided.
v65.0.0
No release notes provided.
v64.0.3
No release notes provided.
v64.0.2
No release notes provided.
v64.0.1
No release notes provided.
v64.0.0
No release notes provided.
v63.4.3
No release notes provided.
v63.4.2
No release notes provided.
... (truncated)
Sourced from setuptools's changelog.
v65.5.1
Misc ^^^^
- #3638: Drop a test dependency on the
mock
package, always use :external+python:py:mod:unittest.mock
-- by :user:hroncok
- #3659: Fixed REDoS vector in package_index.
v65.5.0
Changes ^^^^^^^
- #3624: Fixed editable install for multi-module/no-package
src
-layout projects.- #3626: Minor refactorings to support distutils using stdlib logging module.
Documentation changes ^^^^^^^^^^^^^^^^^^^^^
- #3419: Updated the example version numbers to be compliant with PEP-440 on the "Specifying Your Projectβs Version" page of the user guide.
Misc ^^^^
- #3569: Improved information about conflicting entries in the current working directory and editable install (in documentation and as an informational warning).
- #3576: Updated version of
validate_pyproject
.v65.4.1
Misc ^^^^
- #3613: Fixed encoding errors in
expand.StaticModule
when system default encoding doesn't match expectations for source files.- #3617: Merge with pypa/[email protected] including fix for pypa/distutils#181.
v65.4.0
Changes ^^^^^^^
- #3609: Merge with pypa/[email protected] including support for DIST_EXTRA_CONFIG in pypa/distutils#177.
v65.3.0
... (truncated)
a462cb5
Bump version: 65.5.0 β 65.5.1de35d8b
Merge pull request #3656 from bmorris3/typos58e23de
Update changelog. Ref #3659.43a9c9b
Limit the amount of whitespace to search/backtrack. Fixes #3659.5791343
Add test capturing failed expectation. Ref #3659.1f97905
β« Fade to black.6254567
Remove workaround for emacs.729b180
β« Fade to black.c068081
Typo correctionsf777a40
Suppress deprecation warning in --rsyncdir. Workaround for #3655.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps paramiko from 2.7.2 to 2.10.1.
286bd9f
Cut 2.10.14c491e2
Fix CVE re: PKey.write_private_key chmod raceaa3cc6f
Cut 2.10.0e50e19f
Fix up changelog entry with real links02ad67e
Helps to actually leverage your mocked system calls29d7bf4
Clearly our agent stuff is not fully tested yet...5fcb8da
OpenSSH docs state %C should also work in IdentityFile and Match exec1bf3dce
Changelog enhancementf6342fc
Prettify, add %C as acceptable controlpath token, mock gethostname3f3451f
Add to changelogDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.