User manual
7:File system
_______________________________________________________________________________________________________
root@VA_router:~# vacmd set next config [factconf|config1|config2]
Image files
The system allows for two firmware image files named image1 and image2.
One is the current image that is running and the other is the alternate image.
7.1.2 Configuration file syntax
The configuration files consist of sections that contain one or more config
statements. These optional statements define the actual values.
Below is an example of a simple configuration file.
package 'example'
config 'example' 'test'
option 'string' 'some value'
option 'boolean' '1'
list 'collection' 'first item'
list 'collection' 'second item'
The config 'example' 'test' statement defines the start of a section with the
type example and the name test. There can also be so called anonymous
sections with only a type, but no name identifier. The type is important so the
processing programs can decide how to treat the enclosed options.
The option 'string' 'some value' and option 'boolean' '1' lines define
simple values within the section.
Note: there are no syntactical differences between text and boolean options.
Boolean options may have one of the values '0', 'no', 'off' or 'false' to
specify a false value or '1', 'yes', 'on' or 'true' to specify a true value.
In the lines starting with a list keyword, an option with multiple values is
defined. All list statements that share the same name, collection in this example,
will be combined into a single list of values with the same order as in the
configuration file.
The indentation of the option and list statements is a convention to improve the
readability of the configuration file but it is not syntactically required.
Usually, you do not need to enclose identifiers or values in quotes. Quotes are
only required if the enclosed value contains spaces or tabs. Also, it is legal to use
double instead of single quotes when typing configuration options.
All of the examples below are valid syntax:
option example value
option 'example' value
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 23 of 255