(20250212) Started a new class (util) that handles MikroTik config. in async mode, and started implementing that in the PPPoE-1000 controller. I can now configure and roll back the first three steps. Long way to go :')
This commit is contained in:
@@ -172,7 +172,7 @@ class MikroTikPPPoE1000Auth(BaseModel):
|
||||
frozen = True
|
||||
)
|
||||
|
||||
vlanRange: List[int] = Field(
|
||||
vlanIds: List[int] = Field(
|
||||
description = "Don't know, and don't want to know.",
|
||||
min_length = 1,
|
||||
frozen = True
|
||||
@@ -234,7 +234,7 @@ class MikroTikPPPoE1000Auth(BaseModel):
|
||||
def validate_ip_range(cls, value):
|
||||
return ip.to_hyphen_notation(value)
|
||||
|
||||
@field_validator("vlanRange", mode = "before")
|
||||
@field_validator("vlanIds", mode = "before")
|
||||
def validate_vlans(cls, value):
|
||||
return parse_vlans(value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user