cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
275
Views
5
Helpful
1
Replies

service was not in sync

BasharAziz
Level 1
Level 1

 

 

cli config:

router bgp 64511
!
bgp router-id 1.1.1.1
no bgp default ipv4-unicast
!

 

xml template:

<?xml version="1.0"?>
<config-template xmlns="http://tail-f.com/ns/config/1.0">
<devices xmlns="http://tail-f.com/ns/ncs">
<device>
<name>{$device}</name>
<config>
<router xmlns="urn:ios">
<bgp tags="replace">
<as-no>64511</as-no>
<bgp>
<router-id>{publicLoopbackIp}</router-id>
</bgp>
</bgp>
</router>
</config>
</device>
</devices>
</config-template>

 

Refcount:

devices device router1
config
! Refcount: 1
! Backpointer: [ /ncs:services/device-prov:device-prov[device-prov:device='router1'] ]
router bgp 64511
! Refcount: 1
! Backpointer: [ /ncs:services/device-prov:device-provi[device-prov:device='router1'] ]
no bgp default ipv4-unicast
exit-address-family
!
!
!
!

 

 

 

After login to the router and adding a new vrf in bgp address family ipv4 manually and when I do sync-from, the service becomes out of sync while VRFs are not part of the service in bgp.

 

 

 

Refcount:

devices device router1
config
! Refcount: 1
! Backpointer: [ /ncs:services/device-prov:device-prov[device-prov:device='router1'] ]
router bgp 64511
! Refcount: 1
! Backpointer: [ /ncs:services/device-prov:device-provi[device-prov:device='router1'] ]
no bgp default ipv4-unicast
address-family ipv4 unicast vrf 10000
exit-address-family
!
!
!
!

1 Reply 1

Nabsch
Spotlight
Spotlight

Hello,

 

it’s due to the fact that you are using the tag replace . In your case I don’t think you need it since the router can have only one router-id for Bgp.

 

If you remove the  tag replace it’s going to solve your issue.

 

You specify the tag replace on the container bgp so all the nodes under bgp will inherit  the tags replace unless you specify something else . You can check it by doing a commit dry-run | debug template