Skip to content

Commit

Permalink
fix: Give right type to default value
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainbourgeois committed Nov 25, 2024
1 parent 281eeeb commit fca0061
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/charm_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import dataclasses
import logging
from enum import Enum
from ipaddress import IPv4Address, ip_network
from ipaddress import IPv4Address, IPv4Network, ip_network
from typing import Optional

import ops
Expand Down Expand Up @@ -70,7 +70,7 @@ class UpfConfig(BaseModel): # pylint: disable=too-few-public-methods
cni_type: CNIType = CNIType.bridge
upf_mode: UpfMode = UpfMode.af_packet
dnn: StrictStr = Field(default="internet", min_length=1)
gnb_subnet: IPvAnyNetwork = Field(default="192.168.252.3/24")
gnb_subnet: IPvAnyNetwork = Field(default=IPv4Network("192.168.252.0/24"))
access_interface: Optional[StrictStr] = Field(default="")
access_interface_mac_address: Optional[StrictStr] = Field(default="")
access_ip: str = Field(default="192.168.252.3/24")
Expand Down

0 comments on commit fca0061

Please sign in to comment.