Olive Deploy

Deploy a given Olive lab to an Olive server

class AutoNetkit.deploy.olive_deploy.OliveDeploy(host=None, username=None, network=None, host_alias=None, base_image=None, telnet_start_port=None, parallel=1, qemu='/usr/bin/qemu', seabios='-L /usr/share/seabios', lab_dir='junos_config_dir')[source]

Deploy a given Junos lab to an Olive Host

collect_data(commands)[source]

Runs specified collect_data commands

get_command_output(cmd)[source]

get current working directory

get_shell()[source]

Connects to Netkit server (if remote)

mac_address_list(router_id, count)[source]

Returns a generator of random 48-bit MAC addresses

record_port(router, port)[source]

Records telnet port in router

start_olives()[source]

Starts Olives inside Qemu Steps: 1. Create bash script to start the Olives 2. Copy bash script to remote host 3. Start bash script as sudo

transfer_file(local_file, remote_folder='')[source]

Transfers file to remote host using SCP

unallocated_ports(start=None)[source]

checks for allocated ports and returns a generator, which returns a free port