Configure VyOS via vtysh

Hello everyone,

How do I configure VyOS via vtysh, for example, creating a VLAN?

And if configuring through vtysh doesn’t require a commit and save?

If not needing to commit and save, I consider using vtysh.

Thank you.

You use configure mode in VyOS to create vlans etc:

https://docs.vyos.io/en/latest/cli.html

https://docs.vyos.io/en/latest/configuration/interfaces/ethernet.html#regular-vlans-802-1q

hi @Apachez thanks for replay, I want to config using python script
my scipt not under configure level, but in /config/scripts/my_command.py
do you hava solution?

Sure, have you read the manual regarding this chapter?

https://docs.vyos.io/en/latest/automation/index.html