Linux Cloud Configuration Using Avi CLI

This article provides an example of using the Avi CLI to create a Linux server cloud.

Step 1. Create your cloud

[admin:10-50-0-2]: > configure cloud gcp

Step 2. Attach an IPAM profile

[admin:10-50-0-2]: cloud> ipam_provider_ref gcp

Step 3. Create Linux server configuration

[admin:10-50-0-2]: cloud> linuxserver_configuration
[admin:10-50-0-2]: cloud:linuxserver_configuration> hosts host_ip 10.50.0.5
[admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> host_attr attr_key CPU attr_val 2
New object being created
[admin:10-50-0-2]: cloud:linuxserver_configuration:hosts:host_attr> save
[admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> host_attr attr_key MEMORY attr_val 4
New object being created
[admin:10-50-0-2]: cloud:linuxserver_configuration:hosts:host_attr> save
[admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> host_attr attr_key DPDK attr_val No
New object being created
[admin:10-50-0-2]: cloud:linuxserver_configuration:hosts:host_attr> save
[admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> host_attr attr_key SE_INBAND_MGMT attr_val True
New object being created
[admin:10-50-0-2]: cloud:linuxserver_configuration:hosts:host_attr> save
[admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> save

Repeat the above host steps to incorporate additional Service Engines.

Step 4. Save your config

[admin:10-50-0-2]: cloud:linuxserver_configuration> save
[admin:10-50-0-2]: cloud> save

Step 3.1 Alternate Linux Server configuration

After entering the Linux server configuration, type new to enter edit mode

[admin:10-50-0-2]: cloud:linuxserver_configuration> new

Copy in the host data and change the SE resource variables and ssh_user_ref accordingly.

hosts:
- host_attr:
- attr_key: CPU
attr_val: '2'
- attr_key: MEMORY
attr_val: '4'
- attr_key: DPDK
attr_val: 'No'
- attr_key: SE_INBAND_MGMT
attr_val: 'True'
host_ip:
addr: 10.50.0.4
type: V4
- host_attr:
- attr_key: CPU
attr_val: '2'
- attr_key: MEMORY
attr_val: '4'
- attr_key: DPDK
attr_val: 'No'
- attr_key: SE_INBAND_MGMT
attr_val: 'True'
host_ip:
addr: 10.50.0.6
type: V4
se_inband_mgmt: false
se_log_disk_size_GB: 5
se_sys_disk_size_GB: 10
ssh_user_ref: root

Updated: 2018-01-18 11:22:29 +0000