Skip to content

Commit

Permalink
config_builder: Pydantic 2 quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ljakab committed Mar 14, 2024
1 parent 9cd4223 commit ea317cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdwan_config_builder/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pydantic>=1.10,<2
pydantic>=2
PyYAML>=6.0
Jinja2>=3.1
passlib>=1.7.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
import yaml
from typing import Any, TypeVar, Type, Union, List
from pydantic import BaseModel, ValidationError
from pydantic.v1 import BaseModel, ValidationError
from .models import ConfigModel


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from enum import Enum
from pathlib import Path
from ipaddress import IPv4Network, IPv6Network, IPv4Interface, IPv4Address
from pydantic import BaseModel, BaseSettings, Field, validator, root_validator, constr, conint
from pydantic.v1 import BaseModel, BaseSettings, Field, validator, root_validator, constr, conint
from passlib.hash import sha512_crypt
from sshpubkeys import SSHKey, InvalidKeyError
from .validators import (formatted_string, unique_system_ip, constrained_cidr, cidr_subnet, subnet_interface,
Expand Down

0 comments on commit ea317cc

Please sign in to comment.