cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1062
Views
0
Helpful
1
Replies

How to assign BGP conf structure leafs

l00pback
Level 1
Level 1

Hello All,
Utilizing the Genie BGP conf library, one can populate necessary information inside the BGP conf tree

Bgp   
  +­­DeviceAttributes
        +­­ PeerSessionAttributes
        +­­ PeerPolicyAttributes
        +­­ VrfAttributes
              +­­ AddressFamilyAttributes


which will dictate how the build_config method renders the corresponding configuration.



For example, lets define bgp conf object like this:

from genie.libs.conf.bgp.bgp import Bgp

b1 = Bgp(asn='65876')

How can I assign vrf ID and neighbors within that VRF for the object b1?

Thank you

 

 

 

1 Reply 1

Geevarghese Cheria
Cisco Employee
Cisco Employee

Appologies for the delay in responding to you. Request to check this repo -https://developer.cisco.com/codeexchange/github/repo/sttrayno/pyATS-Lab-Guide