File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/genie/libs/parser/iosxe Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1238,9 +1238,8 @@ def cli(self, output=None):
12381238 ap_cdp_neighbor_dict ['ap_name' ][ap_name ]['neighbor_port' ] = neighbor_port
12391239 if groups ['neighbor_ip' ]:
12401240 neighbor_ip = groups ['neighbor_ip' ]
1241- if not ap_cdp_neighbor_dict ['ap_name' ][ap_name ].get ('neighbor_ip_addresses' , {}):
1242- ap_cdp_neighbor_dict ['ap_name' ][ap_name ]['neighbor_ip_addresses' ] = []
1243- ap_cdp_neighbor_dict ['ap_name' ][ap_name ]['neighbor_ip_addresses' ].append (neighbor_ip )
1241+ address_list = ap_cdp_neighbor_dict ['ap_name' ][ap_name ].setdefault ('neighbor_ip_addresses' , [])
1242+ address_list .append (neighbor_ip )
12441243
12451244 # Neighbor IP Count: 1
12461245 elif neighbor_ip_count_capture .match (line ):
You can’t perform that action at this time.
0 commit comments