fix base vlan pattern

This commit is contained in:
IluaAir
2025-06-30 21:06:03 +03:00
parent c30729ec63
commit e1eeefd42d
5 changed files with 1 additions and 73 deletions

View File

@@ -36,7 +36,7 @@ class BaseDevice(Protocol):
@property
def vlan_parse_pattern(self):
return rf"^vlan\s+(\d{{1,4}})\n(.*?)(?=^{self.anchor_pattern}|\Z)"
return rf"^vlan\s+(\d{{1,4}})\r?\n(.*?)(?=^{self.anchor_pattern}|\Z)"
unamed_vlan_splitter: str = ','
unamed_vlan_counter = '-'