Skip to content
This repository was archived by the owner on Apr 13, 2026. It is now read-only.

Commit afb0831

Browse files
committed
chore: update XML snapshots for VLAN and DHCP configurations
- Modified VLAN and DHCP section snapshots to reflect updated configuration parameters, including VLAN IDs and DHCP options. - Adjusted output snapshots to ensure consistency with the latest configuration generation logic. - All tests have been run successfully, and snapshot updates are validated against expected outputs.
1 parent 3c81360 commit afb0831

5 files changed

Lines changed: 13 additions & 13 deletions

tests/snapshots/snapshot_xml__xml_generation_custom_params_stdout.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
source: tests/snapshot_xml.rs
33
expression: stdout
44
---
5-
🔧 OPNsense Config Faker - Configuration Generator 🔧 Generating OPNsense XML configuration... 🔄 Generating 2 VLAN configurations... 📝 Processing 2 configurations... Summary: 📊 Configurations: 2 📁 Output directory: <TEMP_DIR> 🏷️ VLAN IDs: 2190 - 4027 🔧 Firewall number: 5
5+
🔧 OPNsense Config Faker - Configuration Generator 🔧 Generating OPNsense XML configuration... 🔄 Generating 2 VLAN configurations... 📝 Processing 2 configurations... Summary: 📊 Configurations: 2 📁 Output directory: <TEMP_DIR> 🏷️ VLAN IDs: 3811 - 4027 🔧 Firewall number: 5

tests/snapshots/snapshot_xml__xml_generation_dhcp_section.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ source: tests/snapshot_xml.rs
33
expression: dhcp_section
44
---
55
<dhcpd>
6-
<opt7>
6+
<opt8>
77
<enable>1</enable>
88
<range>
9-
<from>10.1.209.100</from>
10-
<to>10.1.209.200</to>
9+
<from>10.106.89.100</from>
10+
<to>10.106.89.200</to>
1111
</range>
12-
</opt7>
12+
</opt8>
1313
</dhcpd>

tests/snapshots/snapshot_xml__xml_generation_interface_section.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ expression: interface_section
1212
<ipaddr>dhcp</ipaddr>
1313
</wan>
1414
<!-- VLAN interfaces will be added here -->
15-
<opt7>
16-
<if>em0.1968</if>
17-
<ipaddr>10.1.209.1</ipaddr>
15+
<opt8>
16+
<if>em0.2532</if>
17+
<ipaddr>10.106.89.1</ipaddr>
1818
<subnet>24</subnet>
19-
<descr>Development VLAN 1968</descr>
20-
</opt7>
19+
<descr>Development VLAN 2532</descr>
20+
</opt8>
2121
</interfaces>

tests/snapshots/snapshot_xml__xml_generation_stdout.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
source: tests/snapshot_xml.rs
33
expression: stdout
44
---
5-
🔧 OPNsense Config Faker - Configuration Generator 🔧 Generating OPNsense XML configuration... 🔄 Generating 3 VLAN configurations... 📝 Processing 3 configurations... Summary: 📊 Configurations: 3 📁 Output directory: <TEMP_DIR> 🏷️ VLAN IDs: 554 - 3286 🔧 Firewall number: 1
5+
🔧 OPNsense Config Faker - Configuration Generator 🔧 Generating OPNsense XML configuration... 🔄 Generating 3 VLAN configurations... 📝 Processing 3 configurations... Summary: 📊 Configurations: 3 📁 Output directory: <TEMP_DIR> 🏷️ VLAN IDs: 554 - 2609 🔧 Firewall number: 1

tests/snapshots/snapshot_xml__xml_generation_vlan_section.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ expression: vlan_section
55
<vlans>
66
<vlan>
77
<if>em0</if>
8-
<tag>1968</tag>
9-
<descr>Development VLAN 1968</descr>
8+
<tag>2532</tag>
9+
<descr>Development VLAN 2532</descr>
1010
</vlan>
1111
</vlans>

0 commit comments

Comments
 (0)