Page MenuHomeVyOS Platform

BGP neighbor interface v6only fails to commit
Resolved (N/A)PublicBUG

Description

# show protocols 
 bgp {
     address-family {
         ipv4-unicast {
             redistribute {
                 connected {
                 }
             }
         }
     }
     local-as 65022
     neighbor eth5 {
         interface {
             remote-as 65001
         }
     }
     parameters {
         router-id 10.32.0.31
     }
     peer-group SPINE {
         address-family {
             ipv4-unicast {
                 route-map {
                     export UNDERLAY-EXPORT
                 }
             }
             ipv6-unicast {
             }
         }
         capability {
             extended-nexthop
         }
         password XXX
       }
 }

When setting the BGP v6only for interface neighbor, the commit fails to start the BGP service.

vyos# set protocols bgp neighbor eth5 interface v6only peer-group 'SPINE'
[edit]
vyos# commit
[ protocols bgp ]
VyOS had an issue completing a command.

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/protocols_bgp.py", line 328, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/protocols_bgp.py", line 319, in apply
    frr_cfg.commit_configuration(bgp_daemon)
  File "/usr/lib/python3/dist-packages/vyos/frr.py", line 480, in commit_configuration
    raise ConfigurationNotValid(f'Config commit retry counter ({count_max}) exceeded')
vyos.frr.ConfigurationNotValid: Config commit retry counter (5) exceeded



[[protocols bgp]] failed
Commit failed
[edit]

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202203161304-amd64
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

This configuration commits without errors. Can the report be closed?

set protocols bgp neighbor eth5 interface peer-group 'SPINE'
# show protocols 
 bgp {
     address-family {
         ipv4-unicast {
             redistribute {
                 connected {
                 }
             }
         }
     }
     local-as 65022
     neighbor eth5 {
         interface {
             peer-group SPINE
             v6only {
             }
         }
     }
     parameters {
         router-id 10.32.0.31
     }
     peer-group SPINE {
         address-family {
             ipv4-unicast {
                 route-map {
                     export UNDERLAY-EXPORT
                 }
             }
             ipv6-unicast {
             }
         }
         capability {
             extended-nexthop
         }
         password XXX
         remote-as 65001
       }
 }
Viacheslav added a subscriber: Viacheslav.

I can't reproduce this bug with the latest rolling

vyos@r14# run show conf com | match bgp
set protocols bgp address-family ipv4-unicast redistribute connected
set protocols bgp neighbor eth1 interface remote-as '65001'
set protocols bgp neighbor eth1 interface v6only peer-group 'SPING'
set protocols bgp peer-group SPING address-family ipv4-unicast
set protocols bgp peer-group SPING address-family ipv6-unicast
set protocols bgp peer-group SPING capability extended-nexthop
set protocols bgp peer-group SPING password 'foo'
set protocols bgp system-as '65001'

@daniil Could you recheck?
If all is ok, we can close it.