Arthur
685ac5f571
13891 fix primary ip assignment if assigning ip
2023-09-26 08:56:35 -04:00
Arthur Hanson
8e251ac33c
13757 Fix ConfigContext reference to DeviceType ( #13804 )
...
* 13757 do prefetch to work around Django issue with vars in init (DeviceType)
* 13757 use self.__dict to access vars in init
* 13757 change test
2023-09-20 09:56:52 -04:00
Jeremy Stretch
2dfbd72f10
Fixes #13767 : Fix support for comments when creating a new service via web UI
2023-09-15 10:33:54 -04:00
Daniel Sheppard
e4cb0c3cc2
Fixes #11209 - Fix PrefixIPAddress view with saved sort preferences ( #12820 )
...
* Fixes #11209 - Do not add available ips when IPAddressTable sort preferences are saved
* Refine check to account scenario right after clearing ordering string
* Introduce get_table_ordering() utility to determine intended ordering given a request
* Apply fix to VLAN ranges as well
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-09-13 10:51:24 -04:00
Jeremy Stretch
75b71890a4
Misc i18n cleanup
2023-09-11 15:59:50 -04:00
Jeremy Stretch
b5125e512f
Fixes #13721 : Filter VLAN choices by selected site (if any) when creating a prefix
2023-09-11 13:52:19 -04:00
Arthur Hanson
bb6b4d01c1
12553 prefix serializer to IPAddress ( #13592 )
...
* 12553 prefix serializer to IPAddress
* Introduce IPNetworkField to handle prefix serialization
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-09-06 10:49:40 -04:00
Jeremy Stretch
06f2c6f867
Fixes #13632 : Avoid raising exception when checking if FHRP group IP address is primary
2023-08-31 11:09:49 -04:00
Jamie (Bear) Murphy
46f734eba2
fix error for is_oob_ip for non-device parents ( #13621 )
...
* fix error for is_oob_ip for non-device parents
* adjust oob_ip_id check to use hasattr
2023-08-31 07:57:14 -04:00
Jeremy Stretch
2a4e3dd09f
Merge branch 'develop' into feature
2023-08-29 10:45:55 -04:00
Abhimanyu Saharan
8d8f57e8b8
Adds parent filter on iprange ( #13568 )
...
* adds parent filter on iprange #13313
* lint fix
* adds filterset test
* Filter should match both start & end of IP range
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-08-28 09:05:43 -04:00
Abhimanyu Saharan
a75e8416a4
adds vlan child table to vlan group #13536
2023-08-23 13:39:10 -04:00
Arthur
fe95cb434a
13500 fix l2vpntermination bulk update
2023-08-17 15:25:23 -04:00
Jeremy Stretch
44f8a777df
Merge branch 'develop' into feature
2023-08-15 11:04:03 -04:00
Abhimanyu Saharan
be3f48c677
Fixed spelling for Attributes #13460
2023-08-14 13:29:11 +05:30
Arthur Hanson
9fd07b594c
11578 mark swagger available- apis to accept lists in post ( #13445 )
...
* 11578 change swagger for available-ips to accept lists
* 11578 change swagger for available-xxx to accept lists
2023-08-11 09:49:03 -04:00
Jeremy Stretch
914588f55d
Merge branch 'develop' into feature
2023-08-09 15:31:21 -04:00
Abhimanyu Saharan
545769ad88
Adds generic object children template ( #13388 )
...
* adds generic tab view template #12110
* Rename view_tab.html and move to generic/
* Fix console ports template
* Move bulk operations view resolution to template
* Avoid setting default template_name on ObjectChildrenView
* Move base_template and table_config context vars to base context
* removed bulk_delete_control from templates
* refactored bulk_controls view
* fixed table_config
* renamed object_tab.html to objectchildren_list.html
* removed unused import
* Refactor template blocks for bulk operation buttons
* Rename object children generic template
* Move disconnect bulk action into a separate template for device components
* Fix cluster devices & VM interfaces views
* minor button label change
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-08-09 14:16:03 -04:00
Jeremy Stretch
0dd319d0c8
Closes #11675 : Add support for specifying import/export route targets during VRF bulk import
2023-08-04 15:25:06 -04:00
Jeremy Stretch
2afce6c94b
Introduce ContactsMixin
2023-08-04 10:15:50 -04:00
Jeremy Stretch
caedc8dbe3
Closes #13352 : Translation support for model verbose names ( #13354 )
...
* Update verbose_name & verbose_name_plural Meta attributes on all models
* Alter makemigrations to ignore verbose_name & verbose_name_plural changes
2023-08-03 10:41:10 -04:00
Abhimanyu Saharan
57860f26b7
Adds assigned bool for IP address API ( #13301 )
...
* adds assigned bool for ip address API #13151
* Add filterset test
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-08-02 15:45:09 -04:00
Jeremy Stretch
8f271151a7
Closes #11519 : Add a SQL index for IPAddress host value
2023-08-02 09:56:56 -04:00
Abhimanyu Saharan
0bb86f1e7d
Replaces device_role with role on device model ( #13342 )
...
* replaces device_role with role on device model #6391
* fixes lint issue #6391
* revert the database user
* revert test_runner comment
* changes as per review
* Update references to device_role column in UserConfigs
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-08-02 09:55:52 -04:00
Arthur Hanson
e625a5667c
Closes #13279 : Wrap choice labels with gettext()
...
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-31 17:31:07 -04:00
Arthur Hanson
e284cd7e54
Closes #13150 : Wrap table column headers with gettext()
...
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-31 14:35:28 -04:00
Arthur Hanson
b7a9649269
Closes #13149 : Wrap form field labels with gettext_lazy()
...
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-31 12:52:38 -04:00
Arthur Hanson
83bebc1bd2
Closes #13132 : Wrap verbose_name and other model text with gettext_lazy() (i18n)
...
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-31 11:28:07 -04:00
Jeremy Stretch
2a0d76d564
Merge branch 'develop' into feature
2023-07-30 13:36:51 -04:00
Jeremy Stretch
0b10131564
Satisfy PEP8 E721 linter complaints
2023-07-30 13:34:08 -04:00
Jamie (Bear) Murphy
154b8236a2
Oob ip (devices) ( #13013 )
...
* initial oob_ip support for devices
* add primary ip and oob ip checkmark to ip address view
* add oob ip to device view and device edit view
* pep8
* make is_oob_ip and is_primary_ip generic for other models
* refactor oob_ip
* fix oob ip signal
* string capitalisation
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-25 14:40:40 -04:00
Jeremy Stretch
837be4d45f
Merge branch 'develop' into feature
2023-07-11 10:09:26 -04:00
Jeremy Stretch
73348ee435
Fixes #13105 : Avoid exception when attempting to allocate next available IP address from prefix marked as utilized
2023-07-10 13:53:31 -04:00
Jeremy Stretch
7419a8e112
Closes #11738 : Annotate utilization on VLAN groups ( #13108 )
...
* Update serializers.py
* Update vlans.py
* Update vlans.py
* Update vlangroup.html
* Update vlans.py
* Update vlans.py
* Update serializers.py
* adds db annotation to calculate utilization
* optimize queries
* merge fix
* adds round function for utilization to limit decimal
* fixed object view annotation
* consolidated queryset for utilization
* lint fixes
* Renamed manager method to annotate_utilization() for consistency with other managers
---------
Co-authored-by: Abhimanyu Saharan <desk.abhimanyu@gmail.com >
2023-07-06 14:51:28 -04:00
Abhimanyu Saharan
62bdb90f61
Adds copy content button ( #12584 )
...
* adds copy content button #12499
* adds newline
* Omit hash mark from target string
* Clean up HTML element IDs
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-06 14:19:55 -04:00
Abhimanyu Saharan
16ee42ac38
fixes prechange snapshot #12617
2023-07-06 09:39:09 -04:00
Jeremy Stretch
5f0922713f
Fixes #13047 : Add annotate_asn_count() to ASNRange manager
2023-07-06 08:45:02 -04:00
Abhimanyu Saharan
27e850a68d
fix ip address assignment #12953
2023-06-23 14:39:16 -04:00
Abhimanyu Saharan
7f96c7fee7
fixes most schema warnings #12257
2023-06-23 14:19:40 -04:00
Jeremy Stretch
bace24b68e
12180 available objects api ( #12935 )
...
* Introduce AvailableObjectsView and refactor 'available objects' API views
* Restore advisory PostgreSQL locks
* Move get_next_available_prefix()
* Apply OpenAPI decorators for get() and post()
2023-06-20 15:04:10 -04:00
Dillon Henschen
0e873a01b8
Closes #12622 : Fix assigning VLAN without site to Prefix ( #12784 )
...
* Issue #12622 : Fix creating Prefix using VLAN without site
* Issue #12622 : Fix importing Prefix using VLAN without site
This commit also adds tests to verify the import changes implemented
in this commit.
* Issue #12622 : Cleanup code to filter allowed VLANs on a prefix import
* Closes #12622 : Switch to VLAN selector dialog when creating Prefix
2023-06-14 13:49:00 -04:00
Jamie Murphy
22a0ce3f76
broadcast error fixes for ipv6 and /31/32
2023-06-12 21:01:43 +01:00
jeremystretch
b64b19a3f4
Fixes #11934 : Prevent reassignment of an IP address designated as primary for its parent object
2023-05-25 16:42:24 -04:00
Austin de Coup-Crank
005e3fd692
Closes #9068 : validate addresses assigned to interfaces ( #12618 )
...
* Begin logic
* Closes #9068 : Disallow assigning bcast/networks to interfaces
* Allow net IDs in /31, /32, /127, /128
* linting error
* Implement requested changes
* Condensed the "if" logic a bit
---------
Co-authored-by: Austin de Coup-Crank <decoupca@moodys.com >
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-05-22 16:16:17 -04:00
Abhimanyu Saharan
4eb5e90ccc
Adds contact tabs ( #12460 )
...
* adds contact tabs #11599
* fixed lint issues
* changes as per review
* changes as per review
* replaces generic object template with base template
2023-05-12 10:26:26 -04:00
Abhimanyu Saharan
6b19f15a7b
Moves related ips to a tab ( #12502 )
...
* moves related ips to a tab #12233
* Refactor IP address templates to use a base template
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-05-09 12:49:13 -04:00
Daniel Sheppard
7a38f601de
Fixes : #11715 - Fix Parent Prefix table display ( #12448 )
...
* Fixes : #11715 - Fix Parent Prefix table display of global vrf prefixes that are **not** containers.
* Combine AND into a single Q object
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-05-05 09:35:05 -04:00
Daniel Sheppard
46914d9479
Fixes : #10757 - Change IP interface assignment to use new selector ( #12452 )
...
* Fixes : #10757 - Change interface assignment to use new selector. Perform the same change to the NAT assignment as well.
* Remove nat_vrf from form and remove query_params that are not required anymore
2023-05-04 13:59:28 -04:00
Arthur Hanson
55385dd0db
12278 add ipaddressfield serializer for OpenAPI spectacular typing ( #12285 )
...
* #12278 add serializer for ipaddressfield to remove spectacular warnings
* #12278 add ipaddressfieldserializer to nested serializers
* #12278 fix to_internal_value to_representation in serializer
* #12278 to_internal_value is called before validation! need to raise validation error if incorrect format
* #12278 to_internal_value needs to return value doh
* #12278 move IPAddressField to field_serializers
* #12278 remove old import
* 12278 remove validator
2023-04-21 12:41:03 -04:00
Arthur
15d80f4e1b
12195 remove incorrect null=True on choice fields
2023-04-21 12:23:07 -04:00