소스 검색

Changelog & cleanup for #9892

jeremystretch 3 년 전
부모
커밋
6016e1b15d
3개의 변경된 파일14개의 추가작업 그리고 7개의 파일을 삭제
  1. 0 4
      docs/models/ipam/fhrpgroup.md
  2. 9 0
      docs/release-notes/version-3.4.md
  3. 5 3
      netbox/ipam/tables/fhrp.py

+ 0 - 4
docs/models/ipam/fhrpgroup.md

@@ -23,10 +23,6 @@ The group's numeric identifier.
 
 
 An optional name for the FHRP group.
 An optional name for the FHRP group.
 
 
-### Description
-
-A brief description of the FHRP group.
-
 ### Authentication Type
 ### Authentication Type
 
 
 The type of authentication employed by group nodes, if any.
 The type of authentication employed by group nodes, if any.

+ 9 - 0
docs/release-notes/version-3.4.md

@@ -3,6 +3,10 @@
 !!! warning "PostgreSQL 11 Required"
 !!! warning "PostgreSQL 11 Required"
     NetBox v3.4 requires PostgreSQL 11 or later.
     NetBox v3.4 requires PostgreSQL 11 or later.
 
 
+### Enhancements
+
+* [#9892](https://github.com/netbox-community/netbox/issues/9892) - Add optional `name` field for FHRP groups
+
 ### Plugins API
 ### Plugins API
 
 
 * [#10314](https://github.com/netbox-community/netbox/issues/10314) - Move `clone()` method from NetBoxModel to CloningMixin
 * [#10314](https://github.com/netbox-community/netbox/issues/10314) - Move `clone()` method from NetBoxModel to CloningMixin
@@ -10,3 +14,8 @@
 ### Other Changes
 ### Other Changes
 
 
 * [#10358](https://github.com/netbox-community/netbox/issues/10358) - Raise minimum required PostgreSQL version from 10 to 11
 * [#10358](https://github.com/netbox-community/netbox/issues/10358) - Raise minimum required PostgreSQL version from 10 to 11
+
+### REST API Changes
+
+* ipam.FHRPGroup
+    * Added optional `name` field

+ 5 - 3
netbox/ipam/tables/fhrp.py

@@ -36,10 +36,12 @@ class FHRPGroupTable(NetBoxTable):
     class Meta(NetBoxTable.Meta):
     class Meta(NetBoxTable.Meta):
         model = FHRPGroup
         model = FHRPGroup
         fields = (
         fields = (
-            'pk', 'group_id', 'protocol', 'auth_type', 'auth_key', 'name', 'description', 'ip_addresses', 'member_count',
-            'tags', 'created', 'last_updated',
+            'pk', 'group_id', 'protocol', 'name', 'auth_type', 'auth_key', 'description', 'ip_addresses',
+            'member_count', 'tags', 'created', 'last_updated',
+        )
+        default_columns = (
+            'pk', 'group_id', 'protocol', 'name', 'auth_type', 'description', 'ip_addresses', 'member_count',
         )
         )
-        default_columns = ('pk', 'group_id', 'protocol', 'auth_type', 'description', 'ip_addresses', 'member_count')
 
 
 
 
 class FHRPGroupAssignmentTable(NetBoxTable):
 class FHRPGroupAssignmentTable(NetBoxTable):