mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
fix(marker): reserve "global" name prefix for future marker inheritance
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -151,9 +151,9 @@ class MarkerCreate(BaseModel):
|
||||
|
||||
name: Optional[str] = Field(
|
||||
None,
|
||||
pattern=r"^[A-Za-z0-9][A-Za-z0-9_.-]*$",
|
||||
pattern=r"^(?i)(?!global)[A-Za-z0-9][A-Za-z0-9_.-]*$",
|
||||
max_length=128,
|
||||
description="Unique marker name on the link. Auto-generated when absent.",
|
||||
description='Unique marker name on the link. Auto-generated when absent. Names starting with "global" are reserved.',
|
||||
)
|
||||
bpf: str
|
||||
tag: Optional[int] = None
|
||||
|
||||
Reference in new issue
Block a user