Fix to set ipaddress on VLAN
- d0679f9bb46670c593061c4aaebec2a577cdd5c3 commit has introduced a
boolean property nICEnabled() to check if the corresponding
interface is enabled.
- As this property has not been passed down to VLAN interface, the
`Unmanaged=yes` is being set in the VLAN network configuration file
beacuse of which the ipaddress objects for VLAN are not being
populated.
Tested By:
==========
1. Create new VLAN
-XPOST -H "Content-type: application/json" -d '{"data": ["eth0",50]}'
httpsbmcip://<>/xyz/openbmc_project/network/action/VLAN
2. Set an IP address on the VLAN interface and make sure the ip address
is being populated in the Network Configuration file and also make
sure that the vlan interface is now managed.
-XPOST -H "Content-type: application/json" -d
'{"data": ["xyz.openbmc_project.Network.IP.Protocol.IPv4","10.6.6.10",24,"0.0.0.0"] }'
https://<bmcip>/xyz/openbmc_project/network/eth0_50/action/IP
3. Enumerate the VLAN Interface to check if it populates the above set
ip address of the VLAN interface as well.
-X GET https://<bmcip>/xyz/openbmc_project/network/eth0_50/enumerate
4. Create a VLAN(1),set an IP(2) then disable the VLAN using the busctl
call on the NICEnabled Property, and restart the network service and
make sure the VLAN comes back disabled.
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: I892a8c1c1126631a494d42656eeb5be47b4e5bd4
3 files changed