Skip to content

Commit

Permalink
wicked-migrate: Add VLAN tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cfconrad committed Jan 12, 2024
1 parent 984c7ea commit 91f4378
Show file tree
Hide file tree
Showing 8 changed files with 194 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[connection]
id=eth0.10
uuid=91726373-17de-4fbc-b794-91f2e13127aa
type=vlan
interface-name=eth0.10

[ethernet]
cloned-mac-address=DE:EA:DD:BE:EE:FF

[vlan]
flags=0
id=10
parent=eth0
protocol=802.1Q

[match]

[ipv4]
address1=10.1.0.1/24
method=manual

[ipv6]
addr-gen-mode=default
method=auto

[proxy]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[connection]
id=eth0
uuid=413aa828-9cb9-4dfe-8b16-8774fbe2d9f4
type=ethernet
interface-name=eth0

[ethernet]

[match]

[ipv4]
address1=192.168.100.5/24
method=manual

[ipv6]
addr-gen-mode=default
method=auto

[proxy]
22 changes: 22 additions & 0 deletions rust/migrate-wicked/tests/vlan/wicked_xml/eth0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<interface origin="compat:suse:/etc/sysconfig/network/ifcfg-eth0">
<name>eth0</name>
<control>
<mode>boot</mode>
</control>
<firewall/>
<link/>
<ipv4>
<enabled>true</enabled>
<arp-verify>true</arp-verify>
</ipv4>
<ipv4:static>
<address>
<local>192.168.100.5/24</local>
</address>
</ipv4:static>
<ipv6>
<enabled>true</enabled>
<privacy>prefer-public</privacy>
<accept-redirects>false</accept-redirects>
</ipv6>
</interface>
30 changes: 30 additions & 0 deletions rust/migrate-wicked/tests/vlan/wicked_xml/vlan.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<interface origin="compat:suse:/etc/sysconfig/network/ifcfg-eth0.10">
<name>eth0.10</name>
<control>
<mode>boot</mode>
</control>
<firewall>
<zone>trusted</zone>
</firewall>
<vlan>
<device>eth0</device>
<address>de:ea:dd:be:ee:ff</address>
<protocol>ieee802-1Q</protocol>
<tag>10</tag>
</vlan>
<link/>
<ipv4>
<enabled>true</enabled>
<arp-verify>true</arp-verify>
</ipv4>
<ipv4:static>
<address>
<local>10.1.0.1/24</local>
</address>
</ipv4:static>
<ipv6>
<enabled>true</enabled>
<privacy>prefer-public</privacy>
<accept-redirects>false</accept-redirects>
</ipv6>
</interface>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[connection]
id=eth0.10
uuid=91726373-17de-4fbc-b794-91f2e13127aa
type=vlan
interface-name=eth0.10

[ethernet]
cloned-mac-address=DE:EA:DD:BE:EE:FF

[vlan]
flags=0
id=10
parent=eth0
protocol=802.1ad

[match]

[ipv4]
address1=10.1.0.1/24
method=manual

[ipv6]
addr-gen-mode=default
method=auto

[proxy]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[connection]
id=eth0
uuid=413aa828-9cb9-4dfe-8b16-8774fbe2d9f4
type=ethernet
interface-name=eth0

[ethernet]

[match]

[ipv4]
address1=192.168.100.5/24
method=manual

[ipv6]
addr-gen-mode=default
method=auto

[proxy]
22 changes: 22 additions & 0 deletions rust/migrate-wicked/tests/vlan2/wicked_xml/eth0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<interface origin="compat:suse:/etc/sysconfig/network/ifcfg-eth0">
<name>eth0</name>
<control>
<mode>boot</mode>
</control>
<firewall/>
<link/>
<ipv4>
<enabled>true</enabled>
<arp-verify>true</arp-verify>
</ipv4>
<ipv4:static>
<address>
<local>192.168.100.5/24</local>
</address>
</ipv4:static>
<ipv6>
<enabled>true</enabled>
<privacy>prefer-public</privacy>
<accept-redirects>false</accept-redirects>
</ipv6>
</interface>
30 changes: 30 additions & 0 deletions rust/migrate-wicked/tests/vlan2/wicked_xml/vlan.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<interface origin="compat:suse:/etc/sysconfig/network/ifcfg-eth0.10">
<name>eth0.10</name>
<control>
<mode>boot</mode>
</control>
<firewall>
<zone>trusted</zone>
</firewall>
<vlan>
<device>eth0</device>
<address>de:ea:dd:be:ee:ff</address>
<protocol>ieee802-1ad</protocol>
<tag>10</tag>
</vlan>
<link/>
<ipv4>
<enabled>true</enabled>
<arp-verify>true</arp-verify>
</ipv4>
<ipv4:static>
<address>
<local>10.1.0.1/24</local>
</address>
</ipv4:static>
<ipv6>
<enabled>true</enabled>
<privacy>prefer-public</privacy>
<accept-redirects>false</accept-redirects>
</ipv6>
</interface>

0 comments on commit 91f4378

Please sign in to comment.