rspconfig network - xcat2/xcat-core GitHub Wiki

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, it’s DHCP_DISABLED.

If is Static, it’s 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.

⚠️ **GitHub.com Fallback** ⚠️