Specifications

2
Performing Updates Using rsys_swm
31
Configuration file syntax
Theupgradecampaignconfigurationfileusedbythersys_swmutilitymustconformtothe
YAMLfileformat.Seehttp://pyyaml.org/wiki/LibYAMLtodownloadthelibrary(libyaml).
AdditionalinformationontheYAMLformatcanbefoundathttp://yaml.org/spec/1.1.
Formatting guidelines
TheconfigurationfilemustconformtotheseYAML1.1specifications:
Indentationsmustbeinsertedwithspaces.Donotusetabstogeneratewhitespaceinthe
configurationfile.
Indentationmustbeconsistentwithinlevels.
Thisexampleisincorrect:
releaseuri:file:///mnt/release4.x.xEI2
‐exclude:systemboot,bootblock,legacyfpga#skipUBootandBIOS
Thisexampleiscorrect:
‐releaseuri:file:///mnt/release4.x.xEI2
‐exclude:systemboot,bootblock,legacyfpga#skipUBootandBIOS
•Commentscanbeplacedinthefile,precededbya#symbol
Ifyoucopyanyofthesampleconfigurationfilesfromthisdocument(seepage 41),youwill
needtoproperlyformatthefileusingtheYAMLspecificationsothersys_swmutilitycan
parseit.Youcanverifytheconfigurationiscorrectbyissuingthefollowingbeforerunningthe
command:
rsys_swm‐i<serverip>‐c<configfile>‐‐verify
Ifaconfigurationfi leisincorrectlyformatted,youmayreceiveanerrorsimilartothis:
YAMLError:Invalidelementinmap
Code:YAML_LOAD_ERR_BAD_MAP_ELEMENT