Apr-06-2020, 02:35 PM
(Apr-06-2020, 12:42 PM)bmcguire Wrote: Here is my final code that producing a list without the asterisks.Thanks for showing the solution that worked for you.
To show another way.
>>> [[e.strip('*') for e in element] for element in nvlanlist] [['VLAN_2344', 'ae0.0'], ['VLAN_2344', 'ae1.0'], ['VLAN_2344', 'ge-0/0/1.0'], ['VLAN_2344', 'ge-0/0/10.0'], ['VLAN_2344', 'ge-0/0/11.0'], ['VLAN_2344', 'ge-0/0/12.0'], ['VLAN_2344', 'ge-0/0/13.0']]