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

YDK-py : add "soft-reconfiguration inbound always" under bgp vrf neighbor

arynair
Cisco Employee
Cisco Employee

Hi, 

I am having trouble configuring the command "soft-reconfiguration inbound always"under the vrf neighbor:

 

router bgp 100
address-family ipv4 unicast
!
address-family vpnv4 unicast
!
neighbor-group GROUP_A
!
neighbor-group BGP_NEIGHBOR_GROUP
!

!
vrf TEST-VRF
rd 100:1
default-information originate
address-family ipv4 unicast
redistribute connected
redistribute static
!
neighbor 192.168.100.2
remote-as 200
use neighbor-group BGP_NEIGHBOR_GROUP
description DESCRIPTION FOR NEIGHBOR UNDER VRF-R1
update-source Loopback0
address-family ipv4 unicast
route-policy PASS in
route-policy PASS out

soft-reconfiguration inbound always

!

my ydk code:

        #route policy under vrf neighbor

        bgp_vrf_neigh_af_obj = bgp_vrf_neigh_obj.vrf_neighbor_afs.VrfNeighborAf()
        
        bgp_vrf_neigh_af_obj.af_name = xr_ipv4_bgp_datatypes.BgpAddressFamily.ipv4_unicast     
        bgp_vrf_neigh_obj.vrf_neighbor_afs.vrf_neighbor_af.append(bgp_vrf_neigh_af_obj)   
        bgp_vrf_neigh_af_obj.activate = Empty()
        bgp_vrf_neigh_af_obj.route_policy_in = self.bgp_vrf_neighbor_RPL_in
        bgp_vrf_neigh_af_obj.route_policy_out = self.bgp_vrf_neighbor_RPL_out
        #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        
        bgp_vrf_neigh_af_soft_reconfig_obj  = bgp_vrf_neigh_af_obj.SoftReconfiguration()
        bgp_vrf_neigh_af_soft_reconfig_obj.soft_always =True
        bgp_vrf_neigh_af_soft_reconfig_obj.inbound_soft =True
        bgp_vrf_obj.vrf_neighbors.vrf_neighbor.append(bgp_vrf_neigh_obj)
Please help me correctly push the command
Thanks,
Arya

 

1 Accepted Solution

Accepted Solutions

arynair
Cisco Employee
Cisco Employee

the lines should be

bgp_vrf_neigh_af_obj.soft_reconfiguration  = bgp_vrf_neigh_af_obj.SoftReconfiguration()
bgp_vrf_neigh_af_obj.soft_reconfiguration .inbound_soft = True
bgp_vrf_neigh_af_obj.soft_reconfiguration .soft_always = True

View solution in original post

1 Reply 1

arynair
Cisco Employee
Cisco Employee

the lines should be

bgp_vrf_neigh_af_obj.soft_reconfiguration  = bgp_vrf_neigh_af_obj.SoftReconfiguration()
bgp_vrf_neigh_af_obj.soft_reconfiguration .inbound_soft = True
bgp_vrf_neigh_af_obj.soft_reconfiguration .soft_always = True
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: