We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Enable `ENFORCE_GLOBAL_UNIQUE` by default
### NetBox version

v3.6.6

### Feature type

Change to existing functionality

### Proposed functionality

Change the default value of the [`ENFORCE_GLOBAL_UNIQUE`](https://docs.netbox.dev/en/stable/configuration/miscellaneous/#enforce_global_unique) configuration parameter from false to true. This will enforce unique IP addressing within the global (non-VRF) table by default.

This change would affect only deployments without any configuration already defined.

Please use a :+1: or :-1: response below to indicate your support for/opposition to this proposed change.

### Use case

Enforcing unique IP space by default is more restrictive and thus safer than the current default. Obviously, the parameter can still be toggled as needed.

This change would also be consistent with the `enforce_unique` field on the VRF model, which defaults to True.

### Database changes

_No response_

### External dependencies

_No response_

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `netbox/netbox/config/parameters.py`
Content:
```
1 from django import forms
2 from django.contrib.postgres.forms import SimpleArrayField
3 from django.utils.translation import gettext_lazy as _
4 
5 
6 class ConfigParam:
7 
8     def __init__(self, name, label, default, description='', field=None, field_kwargs=None):
9         self.name = name
10         self.label = label
11         self.default = default
12         self.field = field or forms.CharField
13         self.description = description
14         self.field_kwargs = field_kwargs or {}
15 
16 
17 PARAMS = (
18 
19     # Banners
20     ConfigParam(
21         name='BANNER_LOGIN',
22         label=_('Login banner'),
23         default='',
24         description=_("Additional content to display on the login page"),
25         field_kwargs={
26             'widget': forms.Textarea(
27                 attrs={'class': 'vLargeTextField'}
28             ),
29         },
30     ),
31     ConfigParam(
32         name='BANNER_MAINTENANCE',
33         label=_('Maintenance banner'),
34         default='NetBox is currently in maintenance mode. Functionality may be limited.',
35         description=_('Additional content to display when in maintenance mode'),
36         field_kwargs={
37             'widget': forms.Textarea(
38                 attrs={'class': 'vLargeTextField'}
39             ),
40         },
41     ),
42     ConfigParam(
43         name='BANNER_TOP',
44         label=_('Top banner'),
45         default='',
46         description=_("Additional content to display at the top of every page"),
47         field_kwargs={
48             'widget': forms.Textarea(
49                 attrs={'class': 'vLargeTextField'}
50             ),
51         },
52     ),
53     ConfigParam(
54         name='BANNER_BOTTOM',
55         label=_('Bottom banner'),
56         default='',
57         description=_("Additional content to display at the bottom of every page"),
58         field_kwargs={
59             'widget': forms.Textarea(
60                 attrs={'class': 'vLargeTextField'}
61             ),
62         },
63     ),
64 
65     # IPAM
66     ConfigParam(
67         name='ENFORCE_GLOBAL_UNIQUE',
68         label=_('Globally unique IP space'),
69         default=False,
70         description=_("Enforce unique IP addressing within the global table"),
71         field=forms.BooleanField
72     ),
73     ConfigParam(
74         name='PREFER_IPV4',
75         label=_('Prefer IPv4'),
76         default=False,
77         description=_("Prefer IPv4 addresses over IPv6"),
78         field=forms.BooleanField
79     ),
80 
81     # Racks
82     ConfigParam(
83         name='RACK_ELEVATION_DEFAULT_UNIT_HEIGHT',
84         label=_('Rack unit height'),
85         default=22,
86         description=_("Default unit height for rendered rack elevations"),
87         field=forms.IntegerField
88     ),
89     ConfigParam(
90         name='RACK_ELEVATION_DEFAULT_UNIT_WIDTH',
91         label=_('Rack unit width'),
92         default=220,
93         description=_("Default unit width for rendered rack elevations"),
94         field=forms.IntegerField
95     ),
96 
97     # Power
98     ConfigParam(
99         name='POWERFEED_DEFAULT_VOLTAGE',
100         label=_('Powerfeed voltage'),
101         default=120,
102         description=_("Default voltage for powerfeeds"),
103         field=forms.IntegerField
104     ),
105     ConfigParam(
106         name='POWERFEED_DEFAULT_AMPERAGE',
107         label=_('Powerfeed amperage'),
108         default=15,
109         description=_("Default amperage for powerfeeds"),
110         field=forms.IntegerField
111     ),
112     ConfigParam(
113         name='POWERFEED_DEFAULT_MAX_UTILIZATION',
114         label=_('Powerfeed max utilization'),
115         default=80,
116         description=_("Default max utilization for powerfeeds"),
117         field=forms.IntegerField
118     ),
119 
120     # Security
121     ConfigParam(
122         name='ALLOWED_URL_SCHEMES',
123         label=_('Allowed URL schemes'),
124         default=(
125             'file', 'ftp', 'ftps', 'http', 'https', 'irc', 'mailto', 'sftp', 'ssh', 'tel', 'telnet', 'tftp', 'vnc',
126             'xmpp',
127         ),
128         description=_("Permitted schemes for URLs in user-provided content"),
129         field=SimpleArrayField,
130         field_kwargs={'base_field': forms.CharField()}
131     ),
132 
133     # Pagination
134     ConfigParam(
135         name='PAGINATE_COUNT',
136         label=_('Default page size'),
137         default=50,
138         field=forms.IntegerField
139     ),
140     ConfigParam(
141         name='MAX_PAGE_SIZE',
142         label=_('Maximum page size'),
143         default=1000,
144         field=forms.IntegerField
145     ),
146 
147     # Validation
148     ConfigParam(
149         name='CUSTOM_VALIDATORS',
150         label=_('Custom validators'),
151         default={},
152         description=_("Custom validation rules (JSON)"),
153         field=forms.JSONField,
154         field_kwargs={
155             'widget': forms.Textarea(),
156         },
157     ),
158     ConfigParam(
159         name='PROTECTION_RULES',
160         label=_('Protection rules'),
161         default={},
162         description=_("Deletion protection rules (JSON)"),
163         field=forms.JSONField,
164         field_kwargs={
165             'widget': forms.Textarea(),
166         },
167     ),
168 
169     # User preferences
170     ConfigParam(
171         name='DEFAULT_USER_PREFERENCES',
172         label=_('Default preferences'),
173         default={},
174         description=_("Default preferences for new users"),
175         field=forms.JSONField
176     ),
177 
178     # Miscellaneous
179     ConfigParam(
180         name='MAINTENANCE_MODE',
181         label=_('Maintenance mode'),
182         default=False,
183         description=_("Enable maintenance mode"),
184         field=forms.BooleanField
185     ),
186     ConfigParam(
187         name='GRAPHQL_ENABLED',
188         label=_('GraphQL enabled'),
189         default=True,
190         description=_("Enable the GraphQL API"),
191         field=forms.BooleanField
192     ),
193     ConfigParam(
194         name='CHANGELOG_RETENTION',
195         label=_('Changelog retention'),
196         default=90,
197         description=_("Days to retain changelog history (set to zero for unlimited)"),
198         field=forms.IntegerField
199     ),
200     ConfigParam(
201         name='JOB_RETENTION',
202         label=_('Job result retention'),
203         default=90,
204         description=_("Days to retain job result history (set to zero for unlimited)"),
205         field=forms.IntegerField
206     ),
207     ConfigParam(
208         name='MAPS_URL',
209         label=_('Maps URL'),
210         default='https://maps.google.com/?q=',
211         description=_("Base URL for mapping geographic locations")
212     ),
213 
214 )
215
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/netbox/netbox/config/parameters.py b/netbox/netbox/config/parameters.py
--- a/netbox/netbox/config/parameters.py
+++ b/netbox/netbox/config/parameters.py
@@ -66,7 +66,7 @@
     ConfigParam(
         name='ENFORCE_GLOBAL_UNIQUE',
         label=_('Globally unique IP space'),
-        default=False,
+        default=True,
         description=_("Enforce unique IP addressing within the global table"),
         field=forms.BooleanField
     ),

{"golden_diff": "diff --git a/netbox/netbox/config/parameters.py b/netbox/netbox/config/parameters.py\n--- a/netbox/netbox/config/parameters.py\n+++ b/netbox/netbox/config/parameters.py\n@@ -66,7 +66,7 @@\n     ConfigParam(\n         name='ENFORCE_GLOBAL_UNIQUE',\n         label=_('Globally unique IP space'),\n-        default=False,\n+        default=True,\n         description=_(\"Enforce unique IP addressing within the global table\"),\n         field=forms.BooleanField\n     ),\n", "issue": "Enable `ENFORCE_GLOBAL_UNIQUE` by default\n### NetBox version\r\n\r\nv3.6.6\r\n\r\n### Feature type\r\n\r\nChange to existing functionality\r\n\r\n### Proposed functionality\r\n\r\nChange the default value of the [`ENFORCE_GLOBAL_UNIQUE`](https://docs.netbox.dev/en/stable/configuration/miscellaneous/#enforce_global_unique) configuration parameter from false to true. This will enforce unique IP addressing within the global (non-VRF) table by default.\r\n\r\nThis change would affect only deployments without any configuration already defined.\r\n\r\nPlease use a :+1: or :-1: response below to indicate your support for/opposition to this proposed change.\r\n\r\n### Use case\r\n\r\nEnforcing unique IP space by default is more restrictive and thus safer than the current default. Obviously, the parameter can still be toggled as needed.\r\n\r\nThis change would also be consistent with the `enforce_unique` field on the VRF model, which defaults to True.\r\n\r\n### Database changes\r\n\r\n_No response_\r\n\r\n### External dependencies\r\n\r\n_No response_\n", "before_files": [{"content": "from django import forms\nfrom django.contrib.postgres.forms import SimpleArrayField\nfrom django.utils.translation import gettext_lazy as _\n\n\nclass ConfigParam:\n\n    def __init__(self, name, label, default, description='', field=None, field_kwargs=None):\n        self.name = name\n        self.label = label\n        self.default = default\n        self.field = field or forms.CharField\n        self.description = description\n        self.field_kwargs = field_kwargs or {}\n\n\nPARAMS = (\n\n    # Banners\n    ConfigParam(\n        name='BANNER_LOGIN',\n        label=_('Login banner'),\n        default='',\n        description=_(\"Additional content to display on the login page\"),\n        field_kwargs={\n            'widget': forms.Textarea(\n                attrs={'class': 'vLargeTextField'}\n            ),\n        },\n    ),\n    ConfigParam(\n        name='BANNER_MAINTENANCE',\n        label=_('Maintenance banner'),\n        default='NetBox is currently in maintenance mode. Functionality may be limited.',\n        description=_('Additional content to display when in maintenance mode'),\n        field_kwargs={\n            'widget': forms.Textarea(\n                attrs={'class': 'vLargeTextField'}\n            ),\n        },\n    ),\n    ConfigParam(\n        name='BANNER_TOP',\n        label=_('Top banner'),\n        default='',\n        description=_(\"Additional content to display at the top of every page\"),\n        field_kwargs={\n            'widget': forms.Textarea(\n                attrs={'class': 'vLargeTextField'}\n            ),\n        },\n    ),\n    ConfigParam(\n        name='BANNER_BOTTOM',\n        label=_('Bottom banner'),\n        default='',\n        description=_(\"Additional content to display at the bottom of every page\"),\n        field_kwargs={\n            'widget': forms.Textarea(\n                attrs={'class': 'vLargeTextField'}\n            ),\n        },\n    ),\n\n    # IPAM\n    ConfigParam(\n        name='ENFORCE_GLOBAL_UNIQUE',\n        label=_('Globally unique IP space'),\n        default=False,\n        description=_(\"Enforce unique IP addressing within the global table\"),\n        field=forms.BooleanField\n    ),\n    ConfigParam(\n        name='PREFER_IPV4',\n        label=_('Prefer IPv4'),\n        default=False,\n        description=_(\"Prefer IPv4 addresses over IPv6\"),\n        field=forms.BooleanField\n    ),\n\n    # Racks\n    ConfigParam(\n        name='RACK_ELEVATION_DEFAULT_UNIT_HEIGHT',\n        label=_('Rack unit height'),\n        default=22,\n        description=_(\"Default unit height for rendered rack elevations\"),\n        field=forms.IntegerField\n    ),\n    ConfigParam(\n        name='RACK_ELEVATION_DEFAULT_UNIT_WIDTH',\n        label=_('Rack unit width'),\n        default=220,\n        description=_(\"Default unit width for rendered rack elevations\"),\n        field=forms.IntegerField\n    ),\n\n    # Power\n    ConfigParam(\n        name='POWERFEED_DEFAULT_VOLTAGE',\n        label=_('Powerfeed voltage'),\n        default=120,\n        description=_(\"Default voltage for powerfeeds\"),\n        field=forms.IntegerField\n    ),\n    ConfigParam(\n        name='POWERFEED_DEFAULT_AMPERAGE',\n        label=_('Powerfeed amperage'),\n        default=15,\n        description=_(\"Default amperage for powerfeeds\"),\n        field=forms.IntegerField\n    ),\n    ConfigParam(\n        name='POWERFEED_DEFAULT_MAX_UTILIZATION',\n        label=_('Powerfeed max utilization'),\n        default=80,\n        description=_(\"Default max utilization for powerfeeds\"),\n        field=forms.IntegerField\n    ),\n\n    # Security\n    ConfigParam(\n        name='ALLOWED_URL_SCHEMES',\n        label=_('Allowed URL schemes'),\n        default=(\n            'file', 'ftp', 'ftps', 'http', 'https', 'irc', 'mailto', 'sftp', 'ssh', 'tel', 'telnet', 'tftp', 'vnc',\n            'xmpp',\n        ),\n        description=_(\"Permitted schemes for URLs in user-provided content\"),\n        field=SimpleArrayField,\n        field_kwargs={'base_field': forms.CharField()}\n    ),\n\n    # Pagination\n    ConfigParam(\n        name='PAGINATE_COUNT',\n        label=_('Default page size'),\n        default=50,\n        field=forms.IntegerField\n    ),\n    ConfigParam(\n        name='MAX_PAGE_SIZE',\n        label=_('Maximum page size'),\n        default=1000,\n        field=forms.IntegerField\n    ),\n\n    # Validation\n    ConfigParam(\n        name='CUSTOM_VALIDATORS',\n        label=_('Custom validators'),\n        default={},\n        description=_(\"Custom validation rules (JSON)\"),\n        field=forms.JSONField,\n        field_kwargs={\n            'widget': forms.Textarea(),\n        },\n    ),\n    ConfigParam(\n        name='PROTECTION_RULES',\n        label=_('Protection rules'),\n        default={},\n        description=_(\"Deletion protection rules (JSON)\"),\n        field=forms.JSONField,\n        field_kwargs={\n            'widget': forms.Textarea(),\n        },\n    ),\n\n    # User preferences\n    ConfigParam(\n        name='DEFAULT_USER_PREFERENCES',\n        label=_('Default preferences'),\n        default={},\n        description=_(\"Default preferences for new users\"),\n        field=forms.JSONField\n    ),\n\n    # Miscellaneous\n    ConfigParam(\n        name='MAINTENANCE_MODE',\n        label=_('Maintenance mode'),\n        default=False,\n        description=_(\"Enable maintenance mode\"),\n        field=forms.BooleanField\n    ),\n    ConfigParam(\n        name='GRAPHQL_ENABLED',\n        label=_('GraphQL enabled'),\n        default=True,\n        description=_(\"Enable the GraphQL API\"),\n        field=forms.BooleanField\n    ),\n    ConfigParam(\n        name='CHANGELOG_RETENTION',\n        label=_('Changelog retention'),\n        default=90,\n        description=_(\"Days to retain changelog history (set to zero for unlimited)\"),\n        field=forms.IntegerField\n    ),\n    ConfigParam(\n        name='JOB_RETENTION',\n        label=_('Job result retention'),\n        default=90,\n        description=_(\"Days to retain job result history (set to zero for unlimited)\"),\n        field=forms.IntegerField\n    ),\n    ConfigParam(\n        name='MAPS_URL',\n        label=_('Maps URL'),\n        default='https://maps.google.com/?q=',\n        description=_(\"Base URL for mapping geographic locations\")\n    ),\n\n)\n", "path": "netbox/netbox/config/parameters.py"}], "after_files": [{"content": "from django import forms\nfrom django.contrib.postgres.forms import SimpleArrayField\nfrom django.utils.translation import gettext_lazy as _\n\n\nclass ConfigParam:\n\n    def __init__(self, name, label, default, description='', field=None, field_kwargs=None):\n        self.name = name\n        self.label = label\n        self.default = default\n        self.field = field or forms.CharField\n        self.description = description\n        self.field_kwargs = field_kwargs or {}\n\n\nPARAMS = (\n\n    # Banners\n    ConfigParam(\n        name='BANNER_LOGIN',\n        label=_('Login banner'),\n        default='',\n        description=_(\"Additional content to display on the login page\"),\n        field_kwargs={\n            'widget': forms.Textarea(\n                attrs={'class': 'vLargeTextField'}\n            ),\n        },\n    ),\n    ConfigParam(\n        name='BANNER_MAINTENANCE',\n        label=_('Maintenance banner'),\n        default='NetBox is currently in maintenance mode. Functionality may be limited.',\n        description=_('Additional content to display when in maintenance mode'),\n        field_kwargs={\n            'widget': forms.Textarea(\n                attrs={'class': 'vLargeTextField'}\n            ),\n        },\n    ),\n    ConfigParam(\n        name='BANNER_TOP',\n        label=_('Top banner'),\n        default='',\n        description=_(\"Additional content to display at the top of every page\"),\n        field_kwargs={\n            'widget': forms.Textarea(\n                attrs={'class': 'vLargeTextField'}\n            ),\n        },\n    ),\n    ConfigParam(\n        name='BANNER_BOTTOM',\n        label=_('Bottom banner'),\n        default='',\n        description=_(\"Additional content to display at the bottom of every page\"),\n        field_kwargs={\n            'widget': forms.Textarea(\n                attrs={'class': 'vLargeTextField'}\n            ),\n        },\n    ),\n\n    # IPAM\n    ConfigParam(\n        name='ENFORCE_GLOBAL_UNIQUE',\n        label=_('Globally unique IP space'),\n        default=True,\n        description=_(\"Enforce unique IP addressing within the global table\"),\n        field=forms.BooleanField\n    ),\n    ConfigParam(\n        name='PREFER_IPV4',\n        label=_('Prefer IPv4'),\n        default=False,\n        description=_(\"Prefer IPv4 addresses over IPv6\"),\n        field=forms.BooleanField\n    ),\n\n    # Racks\n    ConfigParam(\n        name='RACK_ELEVATION_DEFAULT_UNIT_HEIGHT',\n        label=_('Rack unit height'),\n        default=22,\n        description=_(\"Default unit height for rendered rack elevations\"),\n        field=forms.IntegerField\n    ),\n    ConfigParam(\n        name='RACK_ELEVATION_DEFAULT_UNIT_WIDTH',\n        label=_('Rack unit width'),\n        default=220,\n        description=_(\"Default unit width for rendered rack elevations\"),\n        field=forms.IntegerField\n    ),\n\n    # Power\n    ConfigParam(\n        name='POWERFEED_DEFAULT_VOLTAGE',\n        label=_('Powerfeed voltage'),\n        default=120,\n        description=_(\"Default voltage for powerfeeds\"),\n        field=forms.IntegerField\n    ),\n    ConfigParam(\n        name='POWERFEED_DEFAULT_AMPERAGE',\n        label=_('Powerfeed amperage'),\n        default=15,\n        description=_(\"Default amperage for powerfeeds\"),\n        field=forms.IntegerField\n    ),\n    ConfigParam(\n        name='POWERFEED_DEFAULT_MAX_UTILIZATION',\n        label=_('Powerfeed max utilization'),\n        default=80,\n        description=_(\"Default max utilization for powerfeeds\"),\n        field=forms.IntegerField\n    ),\n\n    # Security\n    ConfigParam(\n        name='ALLOWED_URL_SCHEMES',\n        label=_('Allowed URL schemes'),\n        default=(\n            'file', 'ftp', 'ftps', 'http', 'https', 'irc', 'mailto', 'sftp', 'ssh', 'tel', 'telnet', 'tftp', 'vnc',\n            'xmpp',\n        ),\n        description=_(\"Permitted schemes for URLs in user-provided content\"),\n        field=SimpleArrayField,\n        field_kwargs={'base_field': forms.CharField()}\n    ),\n\n    # Pagination\n    ConfigParam(\n        name='PAGINATE_COUNT',\n        label=_('Default page size'),\n        default=50,\n        field=forms.IntegerField\n    ),\n    ConfigParam(\n        name='MAX_PAGE_SIZE',\n        label=_('Maximum page size'),\n        default=1000,\n        field=forms.IntegerField\n    ),\n\n    # Validation\n    ConfigParam(\n        name='CUSTOM_VALIDATORS',\n        label=_('Custom validators'),\n        default={},\n        description=_(\"Custom validation rules (JSON)\"),\n        field=forms.JSONField,\n        field_kwargs={\n            'widget': forms.Textarea(),\n        },\n    ),\n    ConfigParam(\n        name='PROTECTION_RULES',\n        label=_('Protection rules'),\n        default={},\n        description=_(\"Deletion protection rules (JSON)\"),\n        field=forms.JSONField,\n        field_kwargs={\n            'widget': forms.Textarea(),\n        },\n    ),\n\n    # User preferences\n    ConfigParam(\n        name='DEFAULT_USER_PREFERENCES',\n        label=_('Default preferences'),\n        default={},\n        description=_(\"Default preferences for new users\"),\n        field=forms.JSONField\n    ),\n\n    # Miscellaneous\n    ConfigParam(\n        name='MAINTENANCE_MODE',\n        label=_('Maintenance mode'),\n        default=False,\n        description=_(\"Enable maintenance mode\"),\n        field=forms.BooleanField\n    ),\n    ConfigParam(\n        name='GRAPHQL_ENABLED',\n        label=_('GraphQL enabled'),\n        default=True,\n        description=_(\"Enable the GraphQL API\"),\n        field=forms.BooleanField\n    ),\n    ConfigParam(\n        name='CHANGELOG_RETENTION',\n        label=_('Changelog retention'),\n        default=90,\n        description=_(\"Days to retain changelog history (set to zero for unlimited)\"),\n        field=forms.IntegerField\n    ),\n    ConfigParam(\n        name='JOB_RETENTION',\n        label=_('Job result retention'),\n        default=90,\n        description=_(\"Days to retain job result history (set to zero for unlimited)\"),\n        field=forms.IntegerField\n    ),\n    ConfigParam(\n        name='MAPS_URL',\n        label=_('Maps URL'),\n        default='https://maps.google.com/?q=',\n        description=_(\"Base URL for mapping geographic locations\")\n    ),\n\n)\n", "path": "netbox/netbox/config/parameters.py"}]}