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/release‐4.x.x‐EI2
‐exclude:system‐boot,boot‐block,legacy‐fpga#skipUBootandBIOS
Thisexampleiscorrect:
‐releaseuri:file:///mnt/release‐4.x.x‐EI2
‐exclude:system‐boot,boot‐block,legacy‐fpga#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