Closed ktbyers closed 7 years ago
Reproduced this against the development branch. Here is what neighbor_details
dictionary contains right before KeyError exception:
$ python test_bgp.py
Password:
{u'is_enabled': True, u'uptime': 0, u'remote_as': 102, u'address_family': {},
u'remote_id': u'', u'local_as': 101, 'peer_as': 102, u'is_up': False,
u'description': u''}
Here is what neighbor_details
looks like when it works (BGP session is up):
{u'is_enabled': True, 'tables': 'inet.0', u'uptime': 0, u'remote_as': 102,
u'address_family': {}, 'received_prefixes': 0, u'remote_id': u'10.0.0.32',
u'local_as': 101, 'sent_prefixes': 0, 'local_id': '10.0.0.31', 'peer_as': 102,
u'is_up': True, 'accepted_prefixes': 0, u'description': u''}
Running:
Generated the following exception:
Show bgp summary showed the following: