Skip to content

Commit

Permalink
Added new zone elements to the AY schema
Browse files Browse the repository at this point in the history
The zone elements added are:

  - rich_rules
  - source_ports
  - forward_ports

See (bsc#1108199).
  • Loading branch information
teclator committed Jan 8, 2019
1 parent 1fad277 commit bd03cae
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
8 changes: 8 additions & 0 deletions package/yast2-firewall.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Jan 8 08:53:09 UTC 2019 - knut.anderssen@suse.com

- AutoYast schema:
- Allowed the new 'forward_ports', 'rich_rules' and
'source_ports' elements in zone entries (bsc#1108199)
- 4.1.4

-------------------------------------------------------------------
Thu Dec 20 11:19:51 UTC 2018 - knut.anderssen@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-firewall.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-firewall
Version: 4.1.3
Version: 4.1.4
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
23 changes: 22 additions & 1 deletion src/autoyast-rnc/firewall.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,13 @@ zones =
zone_short? &
zone_description? &
zone_target? &
fwd_forward_ports? &
fwd_interfaces? &
fwd_services? &
fwd_ports? &
fwd_protocols? &
fwd_rich_rules? &
fwd_services? &
fwd_source_ports? &
fwd_sources? &
masquerade?
}*
Expand Down Expand Up @@ -168,6 +171,24 @@ fwd_sources =
element (source | listentry) {text}*
}

fwd_rich_rules =
element rich_rules {
LIST,
element (rich_rule | litentry) {text}*
}

fwd_source_ports =
element source_ports {
LIST,
element (souce_port | litentry) {text}*
}

fwd_forward_ports =
element forward_ports {
LIST,
element (forward_port | litentry) {text}*
}

zone_name = element name { text }
zone_short = element short { text }
zone_description = element description { text }
Expand Down

0 comments on commit bd03cae

Please sign in to comment.