You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pre-upgrade validation script is showing the test 41/67 with invalid output that seems misleading as it doesn't mention any IPs or where to start looking for the issue.
Script output
[Check 41/67] L3Out Loopback IP Overlap With L3Out Interfaces...
Error: invalid literal for int() with base 16: '1/128'...
To Reproduce
I trust you will need to have IPv6 as loopback with /128
Expected behavior
If this is a true issue, then at least the script should tell us where to find the issue.
def l3out_overlapping_loopback_check(index, total_checks, **kwargs):
..................
if IPAddress.ip_in_subnet(loopback['addr'], interface['addr']): <<<< we pass here loopback ipv6 address with subnet mask
However, in the ip_in_subnet class method, we never split it, which leads to the error.
@classmethod
def ip_in_subnet(cls, ip, subnet):
if "/" not in subnet:
return False
subnet_ip, subnet_pfxlen = subnet.split("/") <<<<<< We split for the "subnet" but not for the "ip" variable.
subnet_network = cls.get_network_binary(subnet_ip, subnet_pfxlen)
ip_network = cls.get_network_binary(ip, subnet_pfxlen)
return ip_network == subnet_network
Pre-upgrade validation script is showing the test 41/67 with invalid output that seems misleading as it doesn't mention any IPs or where to start looking for the issue.
Script output
[Check 41/67] L3Out Loopback IP Overlap With L3Out Interfaces...
Error: invalid literal for int() with base 16: '1/128'...
To Reproduce
I trust you will need to have IPv6 as loopback with /128
Expected behavior
If this is a true issue, then at least the script should tell us where to find the issue.
Additional context
node-1# moquery l3extLoopBackIfP | grep dn | grep /128
dn : uni/tn-ADM/out-cr_bgp_de1crt01-1/lnodep-1207-1208/rsnodeL3OutAtt-[topology/pod-2/node-1207]/lbp-[2a01:887:190f:2::1/128]
The text was updated successfully, but these errors were encountered: