VLAN_ID - Subnet Foreman 1.7.1
I found an issue in Foreman 1.7.1 with the Subnet-Section. After defining a Subnet as following:
Name: test Network address: 192.168.178.0 Network mask: 255.255.255.0 Gateway address: 192.168.178.1 Primary DNS server: 192.168.178.2 Secondary DNS server: 192.168.178.3 IPAM: None VLAN ID: 101 Boot mode: Static
and assign it to a hostgroup the following happens when I add a node to this hostgroup (yaml ouput of the node):
foreman_subnets: - network: 192.168.178.0 mask: 255.255.255.0 name: test gateway: 192.168.178.1 dns_primary: 192.168.178.2 dns_secondary: 192.168.178.3 boot_mode: Static ipam: None
So every value I defined will assigned to the node but at least not the VLAN_ID. Why is this happening? Because this value is optional?
Fixes #8779 - add vlanid to subnet ENC
(cherry picked from commit a899d97175c683bb648e3cbd34d0aebcae1252cf)