Add an option to disable "enforce-first-as" option to the BGP settings
set protocols bgp parameters enforce-first-as
set protocols bgp neighbor 192.168.0.2 disable-enforce-first-as
```
To configure a router to deny an update received from an external BGP (eBGP) peer that does not list its autonomous system number at the beginning of the AS_PATH in the incoming update,As per FRR documentation, it is mentioned that enforce-first-as is enabled by default and if you have a peering to RS (Route-Server), most likely you MUST disable the first AS enforcement. useBut the bgp enforce-first-as command in router configuration modere is no disable option available in the VyOS cli.
In order to exclude an arbitrary neighbor from this enforcement, use the command no neighbor NAME enforce-first-as. And vice-versa if a global enforcement is disabled, you can override this behavior per neighbor too.
If you have a peering to RS (Route-Server), most likely you MUST disable the first AS enforcement.
```
This option is available in FRR.https://docs.frrouting.org/en/latest/bgp.html#clicmd-bgp-enforce-first-as