Module scrapli_cfg.platform.core.juniper_junos.patterns¶
scrapli_cfg.platform.core.juniper_junos.patterns
Expand source code
"""scrapli_cfg.platform.core.juniper_junos.patterns"""
import re
VERSION_PATTERN = re.compile(
# should match at least versions looking like:
# 17.3R2.10
# 18.1R3-S2.5
pattern=r"\d+\.[\w-]+\.\w+",
)
OUTPUT_HEADER_PATTERN = re.compile(pattern=r"^## last commit.*$\nversion.*$", flags=re.M | re.I)
EDIT_PATTERN = re.compile(pattern=r"^\[edit\]$", flags=re.M)