mreg-cli 1.4.0__tar.gz → 1.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/CHANGELOG.md +5 -1
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/PKG-INFO +1 -1
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/_version.py +2 -2
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/host_submodules/rr.py +7 -8
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli.egg-info/PKG-INFO +1 -1
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/.github/workflows/publish.yml +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/.github/workflows/test.yml +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/.gitignore +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/.markdownlint.json +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/AUTHORS +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/CONTRIBUTING +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/LICENSE +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/README.md +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/ci/Dockerfile +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/ci/diff.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/ci/docker-compose.yml +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/ci/run_testsuite_and_record.sh +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/ci/run_testsuite_and_record_V2.sh +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/ci/testsuite +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/ci/testsuite-result.json +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/data/mreg-cli.conf +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/__about__.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/__init__.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/__main__.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/api/__init__.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/api/abstracts.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/api/endpoints.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/api/errors.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/api/fields.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/api/history.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/api/models.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/cli.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/__init__.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/base.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/dhcp.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/group.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/help.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/host.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/host_submodules/__init__.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/host_submodules/a_aaaa.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/host_submodules/bacnet.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/host_submodules/cname.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/host_submodules/core.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/label.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/logging.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/network.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/permission.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/policy.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/recording.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/registry.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/root.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/zone.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/config.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/errorbuilder.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/exceptions.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/help_formatter.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/main.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/outputmanager.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/prompt.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/py.typed +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/tags.txt +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/tokenfile.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/types.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/utilities/__init__.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/utilities/api.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/utilities/shared.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/utilities/validators.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli.egg-info/SOURCES.txt +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli.egg-info/dependency_links.txt +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli.egg-info/entry_points.txt +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli.egg-info/requires.txt +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli.egg-info/top_level.txt +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/pyproject.toml +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/run.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/setup.cfg +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/__init__.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/api/__init__.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/api/test_fields.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/api/test_models.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/conftest.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/test_errorbuilder.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/test_exceptions.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/test_outputmanager.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/test_prompt.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/test_tokenfile.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/test_types.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/utilities/__init__.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/utilities/test_api.py +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tox.ini +0 -0
- {mreg_cli-1.4.0 → mreg_cli-1.4.1}/uv.lock +0 -0
|
@@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## Unreleased
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- `ptr add -force` now allows adding PTR records for IPs that are not in a network managed by MREG.
|
|
9
13
|
|
|
10
14
|
## [1.4.0](https://github.com/unioslo/mreg-cli/releases/tag/1.4.0) - 2025-06-20
|
|
11
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mreg-cli
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: MREG interactive command line client
|
|
5
5
|
Author: Others (see AUTHORS)
|
|
6
6
|
Author-email: Øyvind Kolbu <oyvind.kolbu@usit.uio.no>, Safet A <amedov@usit.uio.no>, Magnus Hirth <mhmorgan42@gmail.com>, Nico <nicolaydmohebi@gmail.com>, Marius Bakke <marius.bakke@usit.uio.no>, Fredrik Larsen <fredrik.larsen@usit.uio.no>, Paal Braathen <paal.braathen@usit.uio.no>, Nils Hiorth <nils@nls.me>, Dmytro Karpenko <dmytrok@usit.uio.no>
|
|
@@ -534,15 +534,14 @@ def ptr_add(args: argparse.Namespace) -> None:
|
|
|
534
534
|
if existing_ptrs:
|
|
535
535
|
raise EntityAlreadyExists(f"{ip} already exists in a PTR record.")
|
|
536
536
|
|
|
537
|
-
if host.zone is None and not args.force:
|
|
538
|
-
raise ForceMissing(f"{host} isn't in a zone controlled by MREG, must force")
|
|
539
|
-
|
|
540
537
|
network = Network.get_by_ip(ip)
|
|
541
|
-
if not
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
538
|
+
if not args.force:
|
|
539
|
+
if host.zone is None:
|
|
540
|
+
raise ForceMissing(f"{host} isn't in a zone controlled by MREG, must force")
|
|
541
|
+
elif not network:
|
|
542
|
+
raise ForceMissing(f"{ip} isn't in a network controlled by MREG, must force")
|
|
543
|
+
elif network and network.is_reserved_ip(ip):
|
|
544
|
+
raise ForceMissing(f"{ip} is reserved, must force")
|
|
546
545
|
|
|
547
546
|
PTR_override.create({"host": host.id, "ipaddress": str(ip)})
|
|
548
547
|
OutputManager().add_ok(f"Added PTR record {ip} to {host.name}.")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mreg-cli
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: MREG interactive command line client
|
|
5
5
|
Author: Others (see AUTHORS)
|
|
6
6
|
Author-email: Øyvind Kolbu <oyvind.kolbu@usit.uio.no>, Safet A <amedov@usit.uio.no>, Magnus Hirth <mhmorgan42@gmail.com>, Nico <nicolaydmohebi@gmail.com>, Marius Bakke <marius.bakke@usit.uio.no>, Fredrik Larsen <fredrik.larsen@usit.uio.no>, Paal Braathen <paal.braathen@usit.uio.no>, Nils Hiorth <nils@nls.me>, Dmytro Karpenko <dmytrok@usit.uio.no>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|