Documentation

NetworkManager extends NetworkManagerAbstraction
in package

Table of Contents

$errorLogName  : string
$warningLogName  : string
$apiVersion  : string
API Version
$authenticationManager  : AuthenticationManager
The authentication manager, used to interact with Open Stack APIs
$jobsLogName  : string
The name of the log in which we are going to log actions performed by jobs
$createDefaultNetwork  : bool
$defaultNetworkName  : string
$defaultSubnetCidr  : string
$defaultSubnetName  : string
__construct()  : mixed
The Service constructor
createDefaultNetwork()  : Network|bool
This function will create the default network for the project
delete()  : bool
fromOpenStack()  : Network
Fill model from OpenStack
getAuthenticationManager()  : AuthenticationManager
getOpenStackNetwork()  : Network
hasChanged()  : bool
import()  : Network
list()  : Generator
Get list of Networks from the Open Stack APIs
logEntry()  : Activity
logEntryWithoutModel()  : Activity
logError()  : Activity
logWarning()  : Activity
refresh()  : bool
retrieveOrImport()  : Network
setAuthenticationManager()  : OpenStackObjectManager
toOpenStack()  : Network
Fill OpenStack from model
toOpenStackArray()  : array<string|int, mixed>
Prepare an array to be used vs OpenStack
log()  : array<string|int, Activity>
create()  : void
getNetworkService()  : Service
update()  : void

Properties

$warningLogName

public static string $warningLogName = "warning"

$jobsLogName

The name of the log in which we are going to log actions performed by jobs

protected string $jobsLogName = "jobs"

Methods

createDefaultNetwork()

This function will create the default network for the project

public createDefaultNetwork(Project $project) : Network|bool
Parameters
$project : Project
Return values
Network|bool

getOpenStackNetwork()

public getOpenStackNetwork(string $id[, bool $retrieve = false ]) : Network
Parameters
$id : string
$retrieve : bool = false
Return values
Network

list()

Get list of Networks from the Open Stack APIs

public list() : Generator
Return values
Generator

logEntry()

public static logEntry(Model $model, array<string|int, mixed> $properties, string $description, string $event, string $logName) : Activity
Parameters
$model : Model
$properties : array<string|int, mixed>
$description : string
$event : string
$logName : string
Return values
Activity

logEntryWithoutModel()

public static logEntryWithoutModel(array<string|int, mixed> $properties, string $description, string $event, string $logName) : Activity
Parameters
$properties : array<string|int, mixed>
$description : string
$event : string
$logName : string
Return values
Activity

logError()

public static logError(Model $model, array<string|int, mixed> $properties, string $description, string $event) : Activity
Parameters
$model : Model
$properties : array<string|int, mixed>
$description : string
$event : string
Return values
Activity

logWarning()

public static logWarning(Model $model, array<string|int, mixed> $properties, string $description, string $event) : Activity
Parameters
$model : Model
$properties : array<string|int, mixed>
$description : string
$event : string
Return values
Activity

refresh()

public refresh(Network $network[, Network|OperatorResource|null $openStackNetwork = null ]) : bool
Parameters
$network : Network
$openStackNetwork : Network|OperatorResource|null = null
Return values
bool

retrieveOrImport()

public retrieveOrImport(string $external_id[, bool $refresh = false ]) : Network
Parameters
$external_id : string
$refresh : bool = false
Return values
Network

toOpenStack()

Fill OpenStack from model

public toOpenStack(Network $network, Network $openStackNetwork) : Network
Parameters
$network : Network
$openStackNetwork : Network
Return values
Network

toOpenStackArray()

Prepare an array to be used vs OpenStack

public toOpenStackArray(Network $network) : array<string|int, mixed>
Parameters
$network : Network
Return values
array<string|int, mixed>

log()

protected log(Model|array<string|int, mixed> $models, array<string|int, mixed> $properties, string $description[, null $logName = null ]) : array<string|int, Activity>
Parameters
$models : Model|array<string|int, mixed>
$properties : array<string|int, mixed>
$description : string
$logName : null = null
Return values
array<string|int, Activity>

getNetworkService()

private getNetworkService() : Service
Return values
Service

Search results