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.
Files changed (90) hide show
  1. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/CHANGELOG.md +5 -1
  2. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/PKG-INFO +1 -1
  3. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/_version.py +2 -2
  4. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/host_submodules/rr.py +7 -8
  5. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli.egg-info/PKG-INFO +1 -1
  6. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/.github/workflows/publish.yml +0 -0
  7. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/.github/workflows/test.yml +0 -0
  8. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/.gitignore +0 -0
  9. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/.markdownlint.json +0 -0
  10. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/AUTHORS +0 -0
  11. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/CONTRIBUTING +0 -0
  12. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/LICENSE +0 -0
  13. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/README.md +0 -0
  14. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/ci/Dockerfile +0 -0
  15. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/ci/diff.py +0 -0
  16. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/ci/docker-compose.yml +0 -0
  17. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/ci/run_testsuite_and_record.sh +0 -0
  18. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/ci/run_testsuite_and_record_V2.sh +0 -0
  19. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/ci/testsuite +0 -0
  20. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/ci/testsuite-result.json +0 -0
  21. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/data/mreg-cli.conf +0 -0
  22. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/__about__.py +0 -0
  23. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/__init__.py +0 -0
  24. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/__main__.py +0 -0
  25. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/api/__init__.py +0 -0
  26. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/api/abstracts.py +0 -0
  27. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/api/endpoints.py +0 -0
  28. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/api/errors.py +0 -0
  29. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/api/fields.py +0 -0
  30. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/api/history.py +0 -0
  31. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/api/models.py +0 -0
  32. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/cli.py +0 -0
  33. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/__init__.py +0 -0
  34. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/base.py +0 -0
  35. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/dhcp.py +0 -0
  36. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/group.py +0 -0
  37. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/help.py +0 -0
  38. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/host.py +0 -0
  39. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/host_submodules/__init__.py +0 -0
  40. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/host_submodules/a_aaaa.py +0 -0
  41. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/host_submodules/bacnet.py +0 -0
  42. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/host_submodules/cname.py +0 -0
  43. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/host_submodules/core.py +0 -0
  44. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/label.py +0 -0
  45. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/logging.py +0 -0
  46. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/network.py +0 -0
  47. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/permission.py +0 -0
  48. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/policy.py +0 -0
  49. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/recording.py +0 -0
  50. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/registry.py +0 -0
  51. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/root.py +0 -0
  52. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/commands/zone.py +0 -0
  53. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/config.py +0 -0
  54. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/errorbuilder.py +0 -0
  55. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/exceptions.py +0 -0
  56. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/help_formatter.py +0 -0
  57. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/main.py +0 -0
  58. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/outputmanager.py +0 -0
  59. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/prompt.py +0 -0
  60. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/py.typed +0 -0
  61. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/tags.txt +0 -0
  62. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/tokenfile.py +0 -0
  63. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/types.py +0 -0
  64. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/utilities/__init__.py +0 -0
  65. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/utilities/api.py +0 -0
  66. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/utilities/shared.py +0 -0
  67. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli/utilities/validators.py +0 -0
  68. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli.egg-info/SOURCES.txt +0 -0
  69. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli.egg-info/dependency_links.txt +0 -0
  70. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli.egg-info/entry_points.txt +0 -0
  71. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli.egg-info/requires.txt +0 -0
  72. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/mreg_cli.egg-info/top_level.txt +0 -0
  73. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/pyproject.toml +0 -0
  74. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/run.py +0 -0
  75. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/setup.cfg +0 -0
  76. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/__init__.py +0 -0
  77. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/api/__init__.py +0 -0
  78. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/api/test_fields.py +0 -0
  79. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/api/test_models.py +0 -0
  80. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/conftest.py +0 -0
  81. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/test_errorbuilder.py +0 -0
  82. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/test_exceptions.py +0 -0
  83. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/test_outputmanager.py +0 -0
  84. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/test_prompt.py +0 -0
  85. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/test_tokenfile.py +0 -0
  86. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/test_types.py +0 -0
  87. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/utilities/__init__.py +0 -0
  88. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tests/utilities/test_api.py +0 -0
  89. {mreg_cli-1.4.0 → mreg_cli-1.4.1}/tox.ini +0 -0
  90. {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
- <!-- ## Unreleased -->
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.0
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>
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '1.4.0'
21
- __version_tuple__ = version_tuple = (1, 4, 0)
20
+ __version__ = version = '1.4.1'
21
+ __version_tuple__ = version_tuple = (1, 4, 1)
@@ -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 network:
542
- raise EntityNotFound(f"{ip} isn't in a network controlled by MREG")
543
-
544
- if network.is_reserved_ip(ip) and not args.force:
545
- raise ForceMissing("Address is reserved. Requires force")
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.0
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