Improved CLI syntax for multi-value fields
Several new subcommands simplify editing of CLI fields that accept multiple values. This eliminates re-typing of lists of options, IP addresses, and so on, saving time and avoiding errors. You can simply add or remove individual items from the list.
Table 3: CLI subcommands for multi-value fields
append <field_name> <list> | Add one or more values to the list. |
unselect <field_name> <list> | Remove one or more values from the list. |
select <field_name> <list> | Select one or more values. This is the same as the set subcommand. |
clear <field_name> | Reset the multi-value field to its default value. This is the same as the unset subcommand. |
You can continue to use the set and unset subcommands on multi-value fields.
The new subcommands support command completion. For example, in the config system interface command, if you enter select ?, the response shows only the multi-value fields:
dhcp-relay-ip dhcp relay ip address
allowaccess Allow management access to the interface