-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #70 - improved legacy gateway xml cleanup (do not delet groups …
…defined in xml but not in yaml)
- Loading branch information
Showing
9 changed files
with
134 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,5 +28,4 @@ | |
</gateway_item> | ||
</Gateways> | ||
</OPNsense> | ||
<gateways/> | ||
</opnsense> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,5 +38,4 @@ | |
</gateway_item> | ||
</Gateways> | ||
</OPNsense> | ||
<gateways/> | ||
</opnsense> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<opnsense> | ||
<system> | ||
</system> | ||
<OPNsense> | ||
<Gateways version="1.0.0"> | ||
<gateway_item uuid="eb9d8a75-7d26-562d-8c0b-cde467eed23f"> | ||
<interface>opt6</interface> | ||
<gateway>192.168.0.123</gateway> | ||
<name>SIPGW</name> | ||
<priority>255</priority> | ||
<weight>1</weight> | ||
<ipprotocol>inet</ipprotocol> | ||
<descr>SIP Gateway</descr> | ||
</gateway_item> | ||
</Gateways> | ||
</OPNsense> | ||
<gateways> | ||
<gateway_group> | ||
<name>GW_WAN</name> | ||
<item>GW_WAN1|2</item> | ||
<item>GW_WAN2|3</item> | ||
<item>GW_FMP1_WAN|1</item> | ||
<trigger>down</trigger> | ||
<descr>WAN gateway group</descr> | ||
</gateway_group> | ||
</gateways> | ||
</opnsense> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0"?> | ||
<opnsense> | ||
<system> | ||
</system> | ||
<OPNsense> | ||
<Gateways version="1.0.0"/> | ||
</OPNsense> | ||
<gateways> | ||
<gateway_item> | ||
<interface>opt6</interface> | ||
<gateway>192.168.0.123</gateway> | ||
<name>SIPGW</name> | ||
<priority>255</priority> | ||
<weight>1</weight> | ||
<ipprotocol>inet</ipprotocol> | ||
<descr>SIP Gateway</descr> | ||
</gateway_item> | ||
<gateway_group> | ||
<name>GW_WAN</name> | ||
<item>GW_WAN1|2</item> | ||
<item>GW_WAN2|3</item> | ||
<item>GW_FMP1_WAN|1</item> | ||
<trigger>down</trigger> | ||
<descr>WAN gateway group</descr> | ||
</gateway_group> | ||
</gateways> | ||
</opnsense> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
|
||
opn_gateways: | ||
- interface: opt6 | ||
settings: | ||
- key: gateway | ||
value: 192.168.0.123 | ||
- key: name | ||
value: SIPGW | ||
- key: priority | ||
value: '255' | ||
- key: weight | ||
value: '1' | ||
- key: ipprotocol | ||
value: inet | ||
- key: descr | ||
value: SIP Gateway | ||
|
||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<opnsense> | ||
<system> | ||
</system> | ||
<OPNsense> | ||
<Gateways version="1.0.0"> | ||
<gateway_item uuid="eb9d8a75-7d26-562d-8c0b-cde467eed23f"> | ||
<interface>opt6</interface> | ||
<gateway>192.168.0.123</gateway> | ||
<name>SIPGW</name> | ||
<priority>255</priority> | ||
<weight>1</weight> | ||
<ipprotocol>inet</ipprotocol> | ||
<descr>SIP Gateway</descr> | ||
</gateway_item> | ||
</Gateways> | ||
</OPNsense> | ||
</opnsense> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0"?> | ||
<opnsense> | ||
<system> | ||
</system> | ||
<OPNsense> | ||
<Gateways version="1.0.0"/> | ||
</OPNsense> | ||
<gateways> | ||
<gateway_item> | ||
<interface>opt6</interface> | ||
<gateway>192.168.0.123</gateway> | ||
<name>SIPGW</name> | ||
<priority>255</priority> | ||
<weight>1</weight> | ||
<ipprotocol>inet</ipprotocol> | ||
<descr>SIP Gateway</descr> | ||
</gateway_item> | ||
</gateways> | ||
</opnsense> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
|
||
opn_gateways: | ||
- interface: opt6 | ||
settings: | ||
- key: gateway | ||
value: 192.168.0.123 | ||
- key: name | ||
value: SIPGW | ||
- key: priority | ||
value: '255' | ||
- key: weight | ||
value: '1' | ||
- key: ipprotocol | ||
value: inet | ||
- key: descr | ||
value: SIP Gateway | ||
|
||
|
||
... |