2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2024-11-21 17:11:52 +00:00
1 rspconfig network
xuweibj edited this page 2017-10-26 16:33:40 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Mini-design for OpenBMC rspconfig ip/netmask/gateway/vlan

Background

Interface

rspconfig ip=x.x.x.x netmask=x gateway=x.x.x.x

rspconfig vlan=x ip=x.x.x.x netmask=x gateway=x.x.x.x

Status Machine

  • LOGIN —> RSPCONFIG_GET —> RSPCONFIG_IPOBJECT —> RSPCONFIG_CHECK —> (DHCP_DISABLED or RSPCONFIG_DELETE)

  • LOGIN —> RSPCONFIG_GET —> RSPCONFIG_VLAN —> RSPCONFIG_IPOBJECT —> RSPCONFIG_CHECK —> (DHCP_DISABLED or RSPCONFIG_DELETE)

If the original IP is DHCP, its DHCP_DISABLED.

If is Static, its RSPCONFIG_DELETE.

Response process

RSPCONFIG_GET: save NIC in %node_info. Replace #NIC# string used in next status.

RSPCONFIG_VLAN: update NIC in %node_info, and url of RSPCONFIG_IPOBJECT.

RSPCONFIG_CHECK: check setting whether successfully. Update url of RSPCONFIG_DELETE or DHCP_DISABLED.