Skip to content

Commit

Permalink
Merge pull request #1107 from ersonp/update/config-ver
Browse files Browse the repository at this point in the history
Update/config ver
  • Loading branch information
jdknives authored Mar 2, 2022
2 parents ce9a97c + 5f15d37 commit c408627
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## 0.7.0

### Changed

- config updated to `v1.1.1`

### Added
- added `add-rhv` and `disable-rhv` flags to `skywire-visor` for adding remote hypervisor PK and disable remote hypervisor PK(s) on config file
Expand Down
4 changes: 3 additions & 1 deletion pkg/visor/visorconfig/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ func Parse(log *logging.MasterLogger, path string, raw []byte) (*V1, error) {

switch cc.Version {
// parse any v1-compatible version with v1 parse procedure
case V110Name:
case V111Name:
fallthrough
case V110Name:
return parseV1(cc, raw)
case V101Name:
return parseV1(cc, raw)
case V100Name:
Expand Down
7 changes: 6 additions & 1 deletion pkg/visor/visorconfig/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ const V101Name = "v1.0.1"
// Added dmsghttp_path field to the config
const V110Name = "v1.1.0"

// V111Name is the semantic version string for v1.1.1.
// Added support for dmsghttp
// Added servers field in dmsg for dmsghttp
const V111Name = "v1.1.1"

// V1Name is the semantic version string for the most recent version of V1.
const V1Name = V110Name
const V1Name = V111Name

// V1 is visor config
type V1 struct {
Expand Down

0 comments on commit c408627

Please sign in to comment.