Open ledgley opened 1 year ago
NXOS: version 9.3(5)
Seems like a workaround/solution is to instansiate the session_state
variable, as below
# For address family: VPNv4 Unicast
m = p31.match(line)
if m:
session_state = ''
if 'address_family' not in parsed_dict['neighbor'][neighbor_id]:
parsed_dict['neighbor'][neighbor_id]['address_family'] = {}
address_family = str(m.groupdict()['af']).lower()
if address_family not in parsed_dict['neighbor'][neighbor_id]\
['address_family']:
parsed_dict['neighbor'][neighbor_id]['address_family']\
[address_family] = {}
parsed_dict['neighbor'][neighbor_id]['address_family']\
[address_family]['session_state'] = session_state.lower()
if 'state_reason' in parsed_dict['neighbor'][neighbor_id]:
parsed_dict['neighbor'][neighbor_id]['address_family']\
[address_family]['state_reason'] = \
parsed_dict['neighbor'][neighbor_id]['state_reason']
continue
Hi . Thanks for reaching out piestack support team, I will be looking at your ticket and get back to you .
Hi , Please could you share the complete testbed.yaml file , and also please update your genie package and try it again .
pip install --upgrade genie
make sure that the credentials are correctly defined for the device
credentials:
default:
username: admin
password: 'your_password_here'
enable:
password: 'your_enable_password_here'
Hi , Please can you share the user output and show command to reproduce the issue .
Hi , Please can you share the user output and show command to reproduce the issue .
Hi , Please can you share the user output and show command to reproduce the issue .
Company policy won't allow me to paste the configuration on public GitHub. Happy to raise a TAC, if you can direct me what category to raise it under.
Hi , Please can you share the devices output and show command on external mailer group pyats-support-ext@cisco.com to reproduce the issue .
Hi , Please can you share the devices output and show command on external mail group .
genie learn bgp --testbed-file testbeds/testbed.yml
Testbed
Can also share snippets of config/output if necessary.