Page MenuHomeVyOS Platform

bgp config migration failed with v6only option configured with peer-group
Closed, ResolvedPublic

Description

config migration failed from 1.3.2 to rolling release with v6only option configured with peer-group

This config does not work and migrate failed error is received:

set protocols bgp 64496 neighbor eth0 interface v6only peer-group 'fabric'
set protocols bgp 64496 peer-group fabric address-family ipv4-unicast
set protocols bgp 64496 peer-group fabric address-family ipv6-unicast
set protocols bgp 64496 peer-group fabric capability extended-nexthop
set protocols bgp 64496 peer-group fabric remote-as 'external'

this is the migration error received after the update:

[   39.948664] vyos-router[810]: Mounting VyOS Config...done.
[   69.332838] vyos-router[810]: Starting VyOS router: migrate configure failed!
[   70.011834] vyos-config[950]: Configuration error

When the remote-as option not defined in the peer-group and defined separately, then it works:

set protocols bgp 64496 neighbor eth0 interface v6only peer-group 'fabric'
set protocols bgp 64496 neighbor eth0 interface v6only remote-as 'external'
set protocols bgp 64496 peer-group fabric address-family ipv4-unicast
set protocols bgp 64496 peer-group fabric address-family ipv6-unicast
set protocols bgp 64496 peer-group fabric capability extended-nexthop

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202306190317
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

SrividyaA renamed this task from config migration failed with v6only option configured with peer-group to bgp config migration failed with v6only option configured with peer-group.Jun 21 2023, 10:01 AM

In rolling release, it does not accept remote-as configured as a part of peer-group, commit error is received:

vyos@vyos# comp
[]
+ protocols {
+     bgp {
+         address-family {
+             ipv4-unicast {
+                 redistribute {
+                     connected { }
+                 }
+             }
+             ipv6-unicast {
+                 redistribute {
+                     connected { }
+                 }
+             }
+         }
+         neighbor eth1 {
+             interface {
+                 v6only {
+                     peer-group "fabric"
+                 }
+             }
+         }
+         neighbor eth2 {
+             interface {
+                 v6only {
+                     peer-group "fabric"
+                 }
+             }
+         }
+         parameters {
+             bestpath {
+                 as-path {
+                     multipath-relax { }
+                 }
+                 compare-routerid { }
+             }
+             router-id "192.168.0.1"
+         }
+         peer-group fabric {
+             address-family {
+                 ipv4-unicast { }
+                 ipv6-unicast { }
+             }
+             capability {
+                 extended-nexthop { }
+             }
+             remote-as "external"
+         }
+         system-as "64496"
+     }
+ }

[edit]
vyos@vyos# commit

Neighbor "eth1" remote-as must be set!

Try set protocols bgp neighbor eth1 interface remote-as xxx

The above setting works and also if configured like this:

set protocols bgp neighbor eth0 interface peer-group 'fabric'

but when linked with v6only option , the error is received.

dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
dmbaturin removed c-po as the assignee of this task.
dmbaturin added a project: VyOS 1.4 Sagitta.
dmbaturin added a subscriber: c-po.
c-po edited projects, added VyOS 1.5 Circinus; removed VyOS 1.3 Equuleus.
c-po changed Issue type from Unspecified (please specify) to Bug (incorrect behavior).
c-po moved this task from Need Triage to Finished on the VyOS 1.5 Circinus board.
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.