When creating a port-group in VyOS today it would be handy if such can be defined as a oneliner instead of multiline.
Example.
Today it must be defined as (if you want to add port 800 + 900-950 to a single port-group):
set firewall group port-group TEST port '800' set firewall group port-group TEST port '900-950'
But it would be handy if this instead could be defined as:
set firewall group port-group TEST port '800, 900-950'
Because in the backend todays syntax results in this nftables config (which is a oneliner):
set P_TEST { type inet_service flags interval auto-merge elements = { 800, 900-950 } }
The input validation (except for allowing for digits, whitespace, "," and "-") could perhaps also be a length check to match whatever length that nftables allows for as "elements".
Rumours has it that such input validation for oneliner might already exist somewhere else in the VyOS config.
Ref:
https://old.reddit.com/r/vyos/comments/17ucrav/way_to_quickly_add_multiple_ports_in_a_portgroup/