Skip to content

Commit

Permalink
Merge pull request #1058 from yast/schema_change
Browse files Browse the repository at this point in the history
Schema change
  • Loading branch information
jreidinger committed May 12, 2020
2 parents 335ba3b + ce87f9a commit b5e46d9
Show file tree
Hide file tree
Showing 5 changed files with 201 additions and 160 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -33,3 +33,4 @@ testsuite/run/
/coverage
*.pot
config.*
/test/data/scr_read/var/log
7 changes: 7 additions & 0 deletions package/yast2-network.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue May 12 13:08:03 UTC 2020 - Josef Reidinger <jreidinger@suse.com>

- Autoyast schema: Allow optional types for string and map objects
(bsc#1170886)
- 4.3.0

-------------------------------------------------------------------
Thu Apr 16 07:19:26 UTC 2020 - Knut Anderssen <kanderssen@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-network.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-network
Version: 4.2.66
Version: 4.3.0
Release: 0
Summary: YaST2 - Network Configuration
License: GPL-2.0-only
Expand Down
20 changes: 12 additions & 8 deletions src/autoyast-rnc/host.rnc
@@ -1,14 +1,15 @@
default namespace = "http://www.suse.com/1.0/yast2ns"
namespace config = "http://www.suse.com/1.0/configns"
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
# These currently conflict with the including files
# which would need adjustments
#include "common.rnc"

include "common.rnc"

## to be overriden if included
#start = element profile { host }

host =
element host {
MAP,
hosts?
}

Expand All @@ -20,11 +21,14 @@ hosts =

hosts_entry =
element hosts_entry {
element host_address { text } &
MAP,
(
element host_address { STRING } &
# we do not declare "names =, name =" because the conflict potential is big
element names {
LIST,
element name { text } +
}
element names {
LIST,
element name { STRING } +
}
)
}

0 comments on commit b5e46d9

Please sign in to comment.