If create or replace bgp neighbor and don't set remote-as for him.
After reboot % BGP instance not found
To create this bug:
vyos@uplink# show protocols | commands set bgp 65111 neighbor 10.88.57.1 remote-as '65001' set bgp 65111 neighbor 10.88.57.3 remote-as '65001' [edit] vyos@uplink#
vyos@uplink:~$ sh ip bgp sum Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 10.88.57.1 4 65001 8 9 0 0 0 00:05:16 0 10.88.57.3 4 65001 9 9 0 0 0 00:05:16 1
Delete one peer and create new without remote-as
delete protocols bgp 65111 neighbor 10.88.57.1 set protocols bgp 65111 neighbor 10.88.57.254
vyos@uplink# commit [ protocols bgp 65111 ] [ protocols bgp 65111 neighbor 10.88.57.254 ] must set remote-as or peer-group with remote-as defined [edit] vyos@uplink# save Saving configuration to '/config/config.boot'... Done [edit] vyos@uplink# exit vyos@uplink:~$ reboot
After reboot:
vyos@uplink:~$ sh ip bgp sum % BGP instance not found
Show protocols:
vyos@uplink# show protocols bgp 65111 { neighbor 10.88.57.3 { remote-as 65001 } neighbor 10.88.57.254 { } } [edit] vyos@uplink#
This bug I create on 2 versions
vyos@uplink# run show version Version: VyOS 1.2.3 Built by: Sentrium S.L. Built on: Fri 13 Sep 2019 11:15 UTC Build UUID: bb328444-2f89-4d39-8dab-068278c09194 Build Commit ID: 24f1a74bc88f3a
Latest rolling:
vyos@uplink# run show version Version: VyOS 1.2-rolling-201910230349 Built by: [email protected] Built on: Wed 23 Oct 2019 03:49 UTC Build UUID: 737647df-a3d3-431c-b2e4-4ef8e0b78421 Build Commit ID: 25bb74bc51f7ee
Is it possible to make protection against "command save" if something wrong with commit?