Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hypervisor network: Fix origin issue #168

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

asmithakarun
Copy link

Whenever dhcpv4 is disabled the origin of that ip object was not set back to static. This commit solves the mentioned issue.

Tested By:

'''
PATCH -D patch.txt -d '{"StatelessAddressAutoConfig": {"IPv6AutoConfigEnabled": true}}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/eth0 PATCH -D patch.txt -d '{"DHCPv4" : {"DHCPEnabled": true}}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/eth0 PATCH -D patch.txt -d '{"DHCPv4" : {"DHCPEnabled": false}}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/eth0 '''

Whenever dhcpv4 is disabled the origin of that ip object was not set
back to static. This commit solves the mentioned issue.

Tested By:

'''
PATCH -D patch.txt -d '{"StatelessAddressAutoConfig": {"IPv6AutoConfigEnabled": true}}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/eth0
PATCH -D patch.txt -d '{"DHCPv4" : {"DHCPEnabled": true}}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/eth0
PATCH -D patch.txt -d '{"DHCPv4" : {"DHCPEnabled": false}}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/eth0
'''

Signed-off-by: Asmitha Karunanithi <[email protected]>
@rfrandse rfrandse merged commit e657540 into ibm-openbmc:1110 Jan 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants