Is it possible to search for matches in two lists where a list item contains a matching string, does not equal?
for example:
list_a = [
'ip prefix-list PL_ABBA seq 5 permit 10.10.10.0/24',
'ip prefix-list PL_ABBA seq 10 permit 10.20.10.0/24',
]
list_b = [
'10.10.10.0/24',
'10.20.10.0/24',
'10.30.10.0/24',
'10.40.10.0/24',
]
10.30.10.0/24
and 10.40.10.0/24
are missing from list_a so I want to return these two as missing?
I could regex out the subnets from list_a to make new_list_a then compare using set? but was wondering if there was an easier method?
Thanks