Skip to main content

ESI client

Project description

python-esiclient

python-esiclient extends the OpenStack CLI to provide simplified user workflows, encapsulating multiple OpenStack CLI commands into a single CLI command.

To install as a package:

  • pip install python-esiclient

To install from source:

  • clone this repository
  • install all requirements: pip install -r requirements.txt
  • install: python setup.py install

openstack esi node network <command>

These commands manage network connections to nodes.

openstack esi node network list

List node/network attachments.

openstack esi node network list
   [--node <node>]
   [--network <network>]
  • --node <node>: Filter by node (name or UUID)
  • --network <network>: Filter by network (name or UUID)

openstack esi node network attach

Attach network to a node.

openstack esi node network attach
   (--network <network> | --port <port> | --trunk <trunk>)
   [--mac-address <mac-address>]
   <node>
  • --network <network>: Network (name or UUID)
  • --port <port>: Neutron port (name or UUID)
  • --trunk <trunk>: Neutron trunk (name or UUID)
  • --mac-address <mac-address>: Node MAC address to attach the network to.
  • node: Node (name or UUID)

openstack esi node network detach

Detach network from a node.

openstack esi node network detach
   [--port <port>]
   <node>
  • --port <port>: Port (name or UUID)
  • node: Node (name or UUID)

openstack esi trunk <command>

These commands manage trunk ports.

openstack esi trunk list

List trunk ports.

openstack esi trunk list

openstack esi trunk create

Create a trunk port.

openstack esi trunk create
   [--native-network <native-network>]
   [--tagged-networks <tagged-network>]
   <name>
  • --native-network <native-network>: Native network (name or UUID)
  • --tagged-networks <tagged-network>: Tagged network (name or UUID); can specify multiple
  • name: Name of the trunk port

openstack esi trunk add network

Add a network to a trunk port.

openstack esi trunk add network
   [--tagged-networks <tagged-network>]
   <name>
  • --tagged-networks <tagged-network>: Tagged network (name or UUID); can specify multiple
  • name: Name of the trunk port

openstack esi trunk remove network

Remove a network from a trunk port.

openstack esi trunk remove network
   [--tagged-networks <tagged-network>]
   <name>
  • --tagged-networks <tagged-network>: Tagged network (name or UUID); can specify multiple
  • name: Name of the trunk port

openstack esi trunk delete

Delete a trunk port.

openstack esi trunk delete
   <name>
  • name: Name of the trunk port

openstack esi node volume attach

Boot a node with a volume

openstack esi node volume attach
   (--network <network> | --port <port>)
   [--mac-address <mac-address>]
   <node> <volume>
  • --network <network>: Network (name or UUID)
  • --port <port>: Neutron port (name or UUID)
  • node: Node (name or UUID)
  • volume: Volume (name or UUID)

openstack esi switch <command>

These commands allow you to treat ESI as a switch.

openstack esi switch vlan list

List VLANs and associated switch ports on a switch.

openstack esi switch vlan list <switch>
  • switch: Switch

openstack esi switch port list

List switch ports and associated VLANs on a switch.

openstack esi switch port list <switch>
  • switch: Switch

openstack esi switch port enable access

Attach VLAN to a switchport on a switch.

openstack esi switch port enable access
   <switch>
   <switchport>
   <vlan>
  • switch: Switch
  • switchport: Switchport
  • vlan: VLAN

openstack esi switch port disable access

Disable VLAN access to a switchport on a switch.

openstack esi switch port disable access
   <switch>
   <switchport>
  • switch: Switch
  • switchport: Switchport

openstack esi switch port enable trunk

Attach VLAN to a switchport as the native VLAN of a trunk on a switch.

openstack esi switch port enable trunk
   <switch>
   <switchport>
   <vlan>
  • switch: Switch
  • switchport: Switchport
  • vlan: VLAN

openstack esi switch port disable trunk

Disable trunk on a switchport on a switch.

openstack esi switch port disable trunk
   <switch>
   <switchport>
  • switch: Switch
  • switchport: Switchport

openstack esi switch trunk add vlan

Add VLAN to a trunk on a switchport.

openstack esi switch trunk add vlan
   <switch>
   <switchport>
   <vlan>
  • switch: Switch
  • switchport: Switchport
  • vlan: VLAN

openstack esi switch trunk remove vlan

Remove VLAN from a trunk on a switchport.

openstack esi switch trunk remove vlan
   <switch>
   <switchport>
   <vlan>
  • switch: Switch
  • switchport: Switchport
  • vlan: VLAN

openstack esi cluster <command>

These commands orchestrate and undeploy simple bare metal clusters.

openstack esi cluster orchestrate

Orchestrate a simple cluster.

openstack esi cluster orchestrate <config-file>
  • <config file>: Configuration file; for example
{
    "node_configs": [
	{
	    "nodes": {
		"node_uuids": ["node1"]
	    },
	    "network": {
		"network_uuid": "private-network-1",
		"tagged_network_uuids": ["private-network-2"],
		"fip_network_uuid": "external"
	    },
	    "provisioning": {
		"provisioning_type": "image",
		"image_uuid": "image-name",
		"ssh_key": "/path/to/ssh/key"
	    }
	},
	{
	    "nodes": {
		"num_nodes": "2",
		"resource_class": "baremetal"
	    },
	    "network": {
		"network_uuid": "private-network-1"
	    },
	    "provisioning": {
		"provisioning_type": "image_url",
		"url": "http://url.for/image",
	    }
	}
    ]
}

openstack esi cluster list

List clusters deployed through ESI, along with their associated resources.

openstack esi cluster list

openstack esi cluster undeploy

Undeploy a cluster deployed through ESI.

openstack esi cluster undeploy <cluster-uuid>
  • <cluster uuid>: Cluster UUID; can be found by running openstack esi cluster list

openstack esi openshift <command>

These commands orchestrate and undeploy OpenShift clusters.

openstack esi openshift orchestrate

Orchestrate an OpenShift cluster.

openstack esi openshift orchestrate <config-file>
  • <config file>: Configuration file; for example
{
    "cluster_name": "my-cluster",
    "openshift_version": "4.13.12",
    "high_availability_mode": "Full",
    "base_dns_domain": "my.domain",
    "api_vip": "192.168.1.250",
    "ingress_vip": "192.168.1.249",
    "ssh_public_key": "my-public-key",
    "external_network_name": "external",
    "private_network_name": "my-private-network",
    "private_subnet_name": "my-private-subnet",
    "nodes": ["node1", "node2", "node3"]
}

openstack esi openshift undeploy

Undeploy an OpenShift cluster orchestrated through ESI.

openstack esi openshift undeploy <config-file>
  • <config file>: Configuration file used to orchestrate OpenShift cluster

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_esiclient-1.3.0.tar.gz (63.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_esiclient-1.3.0-py3-none-any.whl (86.6 kB view details)

Uploaded Python 3

File details

Details for the file python_esiclient-1.3.0.tar.gz.

File metadata

  • Download URL: python_esiclient-1.3.0.tar.gz
  • Upload date:
  • Size: 63.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for python_esiclient-1.3.0.tar.gz
Algorithm Hash digest
SHA256 7d1eb13e058de3d2eeef00e0dcd95f2d956817d61cadd754c4f66004c3bf8493
MD5 97eb8812239d6f031f1bcbdea12707da
BLAKE2b-256 994684aaccb0d2bee7e6b24511cef1a892a0b70bafa552c06101c1d85d2ba230

See more details on using hashes here.

File details

Details for the file python_esiclient-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_esiclient-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6037eb6432116806005902381e012c87acca02b40034ea25992e7b5ee0f660c8
MD5 06d60967ac887c3146fae4c487281b6e
BLAKE2b-256 23f4f19bba742e7a41808c5099bbd3b877e34508c9514693e81a4315d84be3dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page