@Vysero : ok let me elaborate . Taking this example :
In short if first element ( vlan id : vlan 158 ,vlan 159 etc ) of a list is present in other list then ignore and vice versa , if not then return with remaining element .
if " vlan 158 " of list a is present anywhere in list b then "ignore".same for list b (if " vlan 158 " of list b is present anywhere in list a then "ignore"). "vlan 159 " of list b is not available anywhere in list a , so it should return remaining element along with first element.So it should say list a is below missing config . ['vlan 159', ' name SALES', ' mode vpc']
In short if first element ( vlan id : vlan 158 ,vlan 159 etc ) of a list is present in other list then ignore and vice versa , if not then return with remaining element .