From a7eaa843d67c4cb4fccc4f93e619d0b2515a667b Mon Sep 17 00:00:00 2001 From: Aaron Greusel Date: Thu, 11 Jul 2024 13:56:34 -0700 Subject: [PATCH] Added square brackets to Community validation regex --- netbox_bgp/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_bgp/models.py b/netbox_bgp/models.py index 0fc208e..5b55b08 100644 --- a/netbox_bgp/models.py +++ b/netbox_bgp/models.py @@ -113,7 +113,7 @@ class Community(BGPBase): """ value = models.CharField( max_length=64, - validators=[RegexValidator(r'[\d\.\*]+:[\d\.\*]+')] + validators=[RegexValidator(r'[\d\.\[\]\*]+:[\d\.\[\]\*]+')] ) class Meta: