Skip to content

Commit

Permalink
updated the ip address collection method
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahesh Kumar authored and laxmikantchintakindi committed Dec 10, 2024
1 parent 8e7e534 commit 25d6200
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import TYPE_CHECKING

from pyavd._errors import AristaAvdError, AristaAvdInvalidInputsError
from pyavd._utils import default, get
from pyavd._utils import default, get, get_ip_from_ip_prefix
from pyavd.j2filters import natural_sort

from .utils_wan import UtilsWanMixin
Expand Down Expand Up @@ -438,7 +438,7 @@ def get_vrf_router_id(

# Resolve router ID from loopback interface

return str(ipaddress.ip_interface(interface_data["ip_address"]).ip)
return get_ip_from_ip_prefix(interface_data["ip_address"])

# Handle "main_router_id" with general router ID enabled/disabled
if router_id == "main_router_id":
Expand Down

0 comments on commit 25d6200

Please sign in to comment.