Browse Source

Closes #10061: Replicate type when cloning L2VPN instances

jeremystretch 3 years ago
parent
commit
804c064a7e
2 changed files with 6 additions and 0 deletions
  1. 4 0
      docs/release-notes/version-3.3.md
  2. 2 0
      netbox/ipam/models/l2vpn.py

+ 4 - 0
docs/release-notes/version-3.3.md

@@ -2,6 +2,10 @@
 
 ## v3.3.1 (FUTURE)
 
+### Enhancements
+
+* [#10061](https://github.com/netbox-community/netbox/issues/10061) - Replicate type when cloning L2VPN instances
+
 ### Bug Fixes
 
 * [#10040](https://github.com/netbox-community/netbox/issues/10040) - Fix exception when ordering prefixes by flat representation

+ 2 - 0
netbox/ipam/models/l2vpn.py

@@ -53,6 +53,8 @@ class L2VPN(NetBoxModel):
         to='tenancy.ContactAssignment'
     )
 
+    clone_fields = ('type',)
+
     class Meta:
         ordering = ('name', 'identifier')
         verbose_name = 'L2VPN'