Create the switchportconfig YAML file and apply the Ethernet interface configuration. For more information, see Ethernet interface configuration - Cisco switch.
Assign an IP address for the Ethernet interface with the following steps:
Home > Communication Service Provider Solutions > Infrastructure Automation > Bare Metal Orchestrator Guides > Bare Metal Orchestrator Release 2.2 Guides > Bare Metal Orchestrator 2.2 Command Line Interface User's Guide > Ethernet interface configuration - Cisco switch
Create the switchportconfig YAML file and apply the Ethernet interface configuration. For more information, see Ethernet interface configuration - Cisco switch.
Assign an IP address for the Ethernet interface with the following steps:
bmo edit switchportconfig -f switchportconfig.yaml
This is an example switchportconfig.yaml file with the updated configuration:
apiVersion: mw.dell.com/v4
kind: SwitchPortConfig
metadata:
name: switch-port-config-1
spec:
interfaceConfig:
name:"2/10"
switchport: false
mtu:9216
ipaddress: <IP address for the interface>
l2Vlan:
vlanID:<REPLACE_THIS>
shutdown: false
description: <REPLACE_THIS>
l3Vlan:
name:<REPLACE_THIS>
description: <REPLACE_THIS>
mtu: <REPLACE_THIS>
ipaddress: <REPLACE_THIS>
redirects: false
bmo edit switch -f <cisco-switch-id>.yaml