-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to learn BGP - UnboundLocalError: local variable 'session_state' referenced before assignment #216
Comments
|
Seems like a workaround/solution is to instansiate the # 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 . |
Hi , pip install --upgrade genie make sure that the credentials are correctly defined for the device
|
Hi , |
2 similar comments
Hi , |
Hi , |
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 , |
Hi , |
genie learn bgp --testbed-file testbeds/testbed.yml
Testbed
Can also share snippets of config/output if necessary.
The text was updated successfully, but these errors were encountered: