The following
example shows a device script in Python:
The following is an
example invocation:
Function: deviceValidate
Arguments:
(
{
'creds': {
'password': 'admin',
'username': 'admin'
},
'host': '10.30.13.153','port': 443
}
u'1.0'
)
Function: deviceAudit
Arguments:
(
{
'host': '10.30.13.153',
'port': 443,
'creds': {
'username': 'admin','password': 'admin'
}
},
{
(11,'','1_1'): {
'state': 0,
'label': 'int'
},
(11,'','1_2'): {
'state': 0,
'label': 'ext'
},
(11,'','1_3'): {
'state': 0,
'label': 'mgmt'
}
},
{
(4,'HighAvailabilityCfg','HA'): {
'state': 2,'value': {
(5,'peerIP','peerip'): {
'state': 2,
'value': '10.30.13.154'
}
}
}
}
)
Function: deviceCounters
Arguments:
(
{
'creds': {
'password': 'insieme',
'username': 'admin'
},
'host': '10.0.0.2',
'port': 443,
'virtual': False
},
{
(11, '', 'eth1_0'): {
'label': ' ',
'state': 0
},
(11, '', 'eth1_1'): {
'label': ' ',
'state': 0
}
},
{
(4, 'HighAvailability', 'HA'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': {
(5, 'id', 'id'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': '1'
},
(5, 'ipaddress', 'ipaddress'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': '10.0.0.3'
},
(5, 'netmask', 'netmask'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': '255.255.255.0'
}
}
}
}
)
Function: clusterAudit
Arguments:
(
{
'name': 'Cluster1',
'virtual': False,
'devs': {
'SampleDevice1': {
'host': '10.30.13.153',
'port': 443,
'creds': {
'username': 'admin',
'password': 'admin'
}
}
},
'host': '10.30.13.153',
'port': 443,
'creds': {
'username': 'admin',
'password': 'admin'
}
},
{
(12, '', 'internal'): {
'state': 0,
'label': 'int'
},
(12, '', 'external'): {
'state': 0,
'label': 'ext'
}
},
{
(4,'SyslogConfig','syslogconfig'): {
'state': 2,
'value': {
(5,'ipaddress','syslogip'): {
'state': 2,
'value': '10.168.62.100'
}
}
},
(4,'NTPConfig','ntpconfig'): {
'state': 2,
'value': {
(5,'ipaddress','syslogip'): {
'state': 2,
'value': '10.168.62.1'
}
}
}
}
)
Function: clusterModify
Arguments:
(
{
'name': 'Cluster1',
'virtual': False,
'devs': {
'SampleDevice1': {
'host': '10.30.13.153',
'port': 443,
'creds': {
'username': 'admin',
'password': 'admin'
}
}
},
'host': '10.30.13.153',
'port': 443,
'creds': {
'username': 'admin',
'password': 'admin'
}
},
{
(12, '', 'internal'): {
'state': 0,
'label': 'int'
},
(12, '', 'external'): {
'state': 0,
'label': 'ext'
}
},
{
(4,'SyslogConfig','syslogconfig'): {
'state': 2,
'value': {
(5,'ipaddress','syslogip'): {
'state': 2,
'value': '10.168.62.100'
}
}
},
(4,'NTPConfig','ntpconfig'): {
'state': 2,
'value': {
(5,'ipaddress','syslogip'): {
'state': 2,
'value': '10.168.62.1'
}
}
}
}
)
Function: serviceModify
Arguments:
(
{
'Device1': {
'creds': {
'password': 'insieme',
'username': 'admin'
},
'host': '10.0.0.2',
'port': 443,
'virtual': False
}
},
'host': '10.0.0.1',
'name': 'LB',
'port': 443,
'virtual': False
},
{
(0, '', 5539): {
'ackedState': 0,
'ctxName': 'TenantActx1',
'state': 1,
'tenant': 'TenantA',
'transaction': 0,
'txid': 10000,
'value': {
(1, '', 4411): {
'absGraph': 'WebGraph',
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': {
(3, 'LoadBalancing', 'SLB'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': {
(2, 'external', 'external'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': {
(9, '', 'LB_external_2424832_32771'): {
'ackedState': 0,
'state': 1,
'target': 'LB_external_2424832_32771',
'transaction': 0
}
}
},
(2, 'internal', 'internal'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': {
(9, '', 'LB_internal_2424832_49154'): {
'ackedState': 0,
'state': 1,
'target': 'LB_internal_2424832_49154',
'transaction': 0
}
}
},
(4, 'externalNetwork', 'externalNetwork'): {
'ackedState': 0,
'connector': 'external',
'state': 1,
'transaction': 0,
'value': {
(6, 'externalNetworkRel', 'externalNetworkRel'): {
'ackedState': 0,
'state': 1,
'target': 'network/externalIP',
'transaction': 0
}
}
},
(4, 'internalNetwork', 'internalNetwork'): {
'ackedState': 0,
'connector': 'internal',
'state': 1,
'transaction': 0,
'value': {
(6, 'internalNetworkRel', 'internalNetworkRel'): {
'ackedState': 0,
'state': 1,
'target': 'network/internalIP',
'transaction': 0
}
}
},
(4, 'lbvserverCfg', 'lbvserverCfg'): {
'ackedState': 0,
'connector': 'external',
'state': 1,
'transaction': 0,
'value': {
(6, 'lbvserverRel', 'lbvserverRel'): {
'ackedState': 0,
'state': 1,
'target': 'lbvserver',
'transaction': 0
}
}
},
(4, 'serverpoolCfg', 'serverpoolCfg'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': {
(6, 'serverpoolRel', 'serverpoolRel'): {
'ackedState': 0,
'state': 1,
'target': 'serverpool',
'transaction': 0
}
}
},
(4, 'vipCfg', 'vipcfg'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': {
(6, 'vipRel', 'vipRel'): {
'ackedState': 0,
'state': 1,
'target': 'network/vipaddress',
'transaction': 0
}
}
}
}
}
},
(4, 'Network', 'network'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': {
(4, 'ip', 'externalIP'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': '20.0.0.1'
},
(5, 'netmask', 'netmask'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': '255.255.255.0'
}
}
},
(4, 'ip', 'internalIP'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': '30.0.0.1'
},
(5, 'netmask', 'netmask'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': '255.255.255.0'
}
}
},
(4, 'ip', 'vipaddress'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': '100.0.0.1'
},
(5, 'netmask', 'netmask'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': '255.255.255.255'
}
}
}
}
},
(4, 'lbvserver', 'lbvserver'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': {
(5, 'ipmask', 'ipmask'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': '255.255.255.255'
},
(5, 'ipv4', 'ipv4'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': '100.0.0.1'
},
(5, 'name', 'name'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': 'vserver1'
},
(5, 'port', 'port'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': '80'
},
(5, 'servicetype', 'servicetype'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': 'http'
}
}
},
(4, 'serverpool', 'serverpool'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': {
(4, 'server', 'server1'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': {
(5, 'ip', 'ip'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': '30.0.0.2'
},
(5, 'port', 'port'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': '80'
}
}
},
(5, 'serverpoolname', 'serverpoolname'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': 'webpool'
},
(5, 'type', 'type'): {
'ackedState': 0,
'state': 1,
'transaction': 0,
'value': 'http'
}
}
},
(7, '', '2424832_32771'): {
'ackedState': 0,
'state': 1,
'tag': 436,
'transaction': 0,
'type': 1
},
(7, '', '2424832_49154'): {
'ackedState': 0,
'state': 1,
'tag': 370,
'transaction': 0,
'type': 1
},
(8, '', 'LB_external_2424832_32771'): {
'ackedState': 0,
'encap': '2424832_32771',
'state': 1,
'transaction': 0,
'vif': 'LB_external'
},
(8, '', 'LB_internal_2424832_49154'): {
'ackedState': 0,
'encap': '2424832_49154',
'state': 1,
'transaction': 0,
'vif': 'LB_internal'
},
(10, '', 'LB_external'): {
'ackedState': 0,
'cifs': {
'Device1': 'eth1_0'
},
'state': 1,
'transaction': 0
},
(10, '', 'LB_internal'): {
'ackedState': 0,
'cifs': {
'Device1': 'eth1_1'
},
'state': 1,
'transaction': 0
}
}
}
}
)
Function: serviceCounters
Arguments:
(
{'creds': {
'password': 'insieme',
'username': 'admin'
},
'devs': {
'Device1': {
'creds': {
'password': 'insieme',
'username': 'admin'
},
'host': '10.0.0.2',
'port': 443,
'virtual': False
}
},
'host': '10.0.0.1',
'name': 'LB',
'port': 443,
'virtual': False
},
{
(0, '', 5539): {
'ctxName': 'TenantActx1',
'state': 2,
'tenant': 'TenantA',
'value': {
(1, '', 4411): {
'absGraph': 'WebGraph',
'state': 2,
'value': {
(3, 'LoadBalancing', 'SLB'): {
'state': 2, 'value': {
(2, 'external', 'external'): {
'state': 2, 'value': {
(9, '', 'LB_external_2424832_32771'): {
'state': 0, 'target': 'LB_external_2424832_32771'
}
}
},
(2, 'internal', 'internal'): {
'state': 2,
'value': {
(9, '', 'LB_internal_2424832_49154'): {
'state': 0,
'target': 'LB_internal_2424832_49154'
}
}
},
(4, 'externalNetwork', 'externalNetwork'): {
'connector': 'external',
'state': 0,
'value': {
(6, 'externalNetworkRel', 'externalNetworkRel'): {
'state': 0,
'target': 'network/externalIP'
}
}
},
(4, 'internalNetwork', 'internalNetwork'): {
'connector': 'internal',
'state': 0,
'value': {
(6, 'internalNetworkRel', 'internalNetworkRel'): {
'state': 0,
'target': 'network/internalIP'
}
}
},
(4, 'lbvserverCfg', 'lbvserverCfg'): {
'connector': 'external',
'state': 0,
'value': {
(6, 'lbvserverRel', 'lbvserverRel'): {
'state': 0,
'target': 'lbvserver'
}
}
},
(4, 'serverpoolCfg', 'serverpoolCfg'): {
'state': 0,
'value': {
(6, 'serverpoolRel', 'serverpoolRel'): {
'state': 0,
'target': 'serverpool'
}
}
},
(4, 'vipCfg', 'vipcfg'): {
'state': 0,
'value': {
(6, 'vipRel', 'vipRel'): {
'state': 0,
'target': 'network/vipaddress'
}
}
}
}
}
}
},
(4, 'Network', 'network'): {
'state': 0,
'value': {
(4, 'ip', 'externalIP'): {
'state': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'state': 0,
'value': '20.0.0.1'
},
(5, 'netmask', 'netmask'): {
'state': 0,
'value': '255.255.255.0'
}
}
},
(4, 'ip', 'internalIP'): {
'state': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'state': 0,
'value': '30.0.0.1'
},
(5, 'netmask', 'netmask'): {
'state': 0,
'value': '255.255.255.0'
}
}
},
(4, 'ip', 'vipaddress'): {
'state': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'state': 0,
'value': '100.0.0.1'
},
(5, 'netmask', 'netmask'): {
'state': 0,
'value': '255.255.255.255'
}
}
}
}
},
(4, 'lbvserver', 'lbvserver'): {
'state': 0,
'value': {
(5, 'ipmask', 'ipmask'): {
'state': 0,
'value': '255.255.255.255'
},
(5, 'ipv4', 'ipv4'): {
'state': 0,
'value': '100.0.0.1'
},
(5, 'name', 'name'): {
'state': 0,
'value': 'vserver1'
},
(5, 'port', 'port'): {
'state': 0,
'value': '80'
},
(5, 'servicetype', 'servicetype'): {
'state': 0,
'value': 'http'
}
}
},
(4, 'serverpool', 'serverpool'): {
'state': 0,
'value': {
(4, 'server', 'server1'): {
'state': 0,
'value': {
(5, 'ip', 'ip'): {
'state': 0,
'value': '30.0.0.2'
},
(5, 'port', 'port'): {
'state': 0,
'value': '80'
}
}
},
(5, 'serverpoolname', 'serverpoolname'): {
'state': 0,
'value': 'webpool'
},
(5, 'type', 'type'): {
'state': 0,
'value': 'http'
}
}
},
(7, '', '2424832_32771'): {
'state': 0,
'tag': 436,
'type': 1
},
(7, '', '2424832_49154'): {
'state': 0,
'tag': 370,
'type': 1
},
(8, '', 'LB_external_2424832_32771'): {
'encap': '2424832_32771',
'state': 0,
'vif': 'LB_external'
},
(8, '', 'LB_internal_2424832_49154'): {
'encap': '2424832_49154',
'state': 0,
'vif': 'LB_internal'
},
(10, '', 'LB_external'): {
'cifs': {
'Device1': 'eth1_0'
},
'state': 0
},
(10, '', 'LB_internal'): {
'cifs': {
'Device1': 'eth1_1'
},
'state': 0
}
}
}
)
Function: serviceHealth
Arguments:
(
{'creds': {
'password': 'insieme',
'username': 'admin'
},
'devs': {
'Device1': {
'creds': {
'password': 'insieme',
'username': 'admin'
},
'host': '10.0.0.2',
'port': 443,
'virtual': False
}
},
'host': '10.0.0.1',
'name': 'LB',
'port': 443,
'virtual': False
},
{(0, '', 5539): {
'ctxName': 'TenantActx1',
'state': 2,
'tenant': 'TenantA',
'value': {
(1, '', 4411): {
'absGraph': 'WebGraph',
'state': 2,
'value': {
(3, 'LoadBalancing', 'SLB'): {
'state': 2,
'value': {
(2, 'external', 'external'): {
'state': 2,
'value': {
(9, '', 'LB_external_2424832_32771'): {
'state': 0,
'target': 'LB_external_2424832_32771'
}
}
},
(2, 'internal', 'internal'): {
'state': 2,
'value': {
(9, '', 'LB_internal_2424832_49154'): {
'state': 0,
'target': 'LB_internal_2424832_49154'
}
}
},
(4, 'externalNetwork', 'externalNetwork'): {
'connector': 'external',
'state': 0,
'value': {
(6, 'externalNetworkRel', 'externalNetworkRel'): {
'state': 0,
'target': 'network/externalIP'
}
}
},
(4, 'internalNetwork', 'internalNetwork'): {
'connector': 'internal',
'state': 0,
'value': {
(6, 'internalNetworkRel', 'internalNetworkRel'): {
'state': 0,
'target': 'network/internalIP'
}
}
},
(4, 'lbvserverCfg', 'lbvserverCfg'): {
'connector': 'external',
'state': 0,
'value': {
(6, 'lbvserverRel', 'lbvserverRel'): {
'state': 0,
'target': 'lbvserver'
}
}
},
(4, 'serverpoolCfg', 'serverpoolCfg'): {
'state': 0,
'value': {
(6, 'serverpoolRel', 'serverpoolRel'): {
'state': 0,
'target': 'serverpool'
}
}
},
(4, 'vipCfg', 'vipcfg'): {
'state': 0,
'value': {
(6, 'vipRel', 'vipRel'): {
'state': 0,
'target': 'network/vipaddress'
}
}
}
}
}
}
},
(4, 'Network', 'network'): {
'state': 0,
'value': {
(4, 'ip', 'externalIP'): {
'state': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'state': 0,
'value': '20.0.0.1'
},
(5, 'netmask', 'netmask'): {
'state': 0,
'value': '255.255.255.0'
}
}
},
(4, 'ip', 'internalIP'): {
'state': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'state': 0,
'value': '30.0.0.1'
},
(5, 'netmask', 'netmask'): {
'state': 0,
'value': '255.255.255.0'
}
}
},
(4, 'ip', 'vipaddress'): {
'state': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'state': 0,
'value': '100.0.0.1'
},
(5, 'netmask', 'netmask'): {
'state': 0,
'value': '255.255.255.255'
}
}
}
}
},
(4, 'lbvserver', 'lbvserver'): {
'state': 0,
'value': {
(5, 'ipmask', 'ipmask'): {
'state': 0,
'value': '255.255.255.255'
},
(5, 'ipv4', 'ipv4'): {
'state': 0,
'value': '100.0.0.1'
},
(5, 'name', 'name'): {
'state': 0,
'value': 'vserver1'
},
(5, 'port', 'port'): {
'state': 0,
'value': '80'
},
(5, 'servicetype', 'servicetype'): {
'state': 0,
'value': 'http'
}
}
},
(4, 'serverpool', 'serverpool'): {
'state': 0,
'value': {
(4, 'server', 'server1'): {
'state': 0,
'value': {
(5, 'ip', 'ip'): {
'state': 0,
'value': '30.0.0.2'
},
(5, 'port', 'port'): {
'state': 0,
'value': '80'
}
}
},
(5, 'serverpoolname', 'serverpoolname'): {
'state': 0,
'value': 'webpool'
},
(5, 'type', 'type'): {
'state': 0,
'value': 'http'
}
}
},
(7, '', '2424832_32771'): {
'state': 0,
'tag': 436,
'type': 1
},
(7, '', '2424832_49154'): {
'state': 0,
'tag': 370,
'type': 1
},
(8, '', 'LB_external_2424832_32771'): {
'encap': '2424832_32771',
'state': 0,
'vif': 'LB_external'
},
(8, '', 'LB_internal_2424832_49154'): {
'encap': '2424832_49154',
'state': 0,
'vif': 'LB_internal'
},
(10, '', 'LB_external'): {
'cifs': {
'Device1': 'eth1_0'
},
'state': 0
},
(10, '', 'LB_internal'): {
'cifs': {
'Device1': 'eth1_1'
},
'state': 0
}
}
}
}
)
Function: attachEndpoint
Arguments:
(
{'creds': {
'password': 'insieme', 'username': 'admin'
},
'devs': {
'Device1': {
'creds': {
'password': 'insieme', 'username': 'admin'
},
'host': '10.0.0.2',
'port': 443,
'virtual': False
}
},
'host': '10.0.0.1',
'name': 'LB',
'port': 443,
'virtual': False
},
{(0, '', 5539): {
'ctxName': 'TenantActx1',
'state': 2,
'tenant': 'TenantA',
'value': {
(1, '', 4411): {
'absGraph': 'WebGraph',
'state': 2,
'value': {
(3, 'LoadBalancing', 'SLB'): {
'state': 2,
'value': {
(2, 'external', 'external'): {
'state': 2,
'value': {
(9, '', 'LB_external_2424832_32771'): {
'state': 0,
'target': 'LB_external_2424832_32771'
}
}
},
(2, 'internal', 'internal'): {
'state': 2,
'value': {
(9, '', 'LB_internal_2424832_49154'): {
'state': 0,
'target': 'LB_internal_2424832_49154'
}
}
},
(4, 'externalNetwork', 'externalNetwork'): {
'connector': 'external',
'value': {
(6, 'externalNetworkRel', 'externalNetworkRel'): {
'state': 0,
'target': 'network/externalIP'
}
}
},
(4, 'internalNetwork', 'internalNetwork'): {
'connector': 'internal',
'state': 0,
'value': {
(6, 'internalNetworkRel', 'internalNetworkRel'): {
'state': 0,
'target': 'network/internalIP'
}
}
},
(4, 'lbvserverCfg', 'lbvserverCfg'): {
'connector': 'external',
'state': 0,
'value': {
(6, 'lbvserverRel', 'lbvserverRel'): {
'state': 0,
'target': 'lbvserver'
}
}
},
(4, 'serverpoolCfg', 'serverpoolCfg'): {
'state': 0,
'value': {
(6, 'serverpoolRel', 'serverpoolRel'): {
'state': 0,
'target': 'serverpool'
}
}
},
(4, 'vipCfg', 'vipcfg'): {
'state': 0,
'value': {
(6, 'vipRel', 'vipRel'): {
'state': 0,
'target': 'network/vipaddress'
}
}
}
}
}
}
},
(4, 'Network', 'network'): {
'state': 0,
'value': {
(4, 'ip', 'externalIP'): {
'state': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'state': 0,
'value': '20.0.0.1'
},
(5, 'netmask', 'netmask'): {
'state': 0,
'value': '255.255.255.0'
}
}
},
(4, 'ip', 'internalIP'): {
'state': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'state': 0,
'value': '30.0.0.1'
},
(5, 'netmask', 'netmask'): {
'state': 0,
'value': '255.255.255.0'
}
}
},
(4, 'ip', 'vipaddress'): {
'state': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'state': 0,
'value': '100.0.0.1'
},
(5, 'netmask', 'netmask'): {
'state': 0,
'value': '255.255.255.255'
}
}
}
}
},
(4, 'lbvserver', 'lbvserver'): {
'state': 0,
'value': {
(5, 'ipmask', 'ipmask'): {
'state': 0,
'value': '255.255.255.255'
},
(5, 'ipv4', 'ipv4'): {
'state': 0,
'value': '100.0.0.1'
},
(5, 'name', 'name'): {
'state': 0,
'value': 'vserver1'
},
(5, 'port', 'port'): {
'state': 0,
'value': '80'
},
(5, 'servicetype', 'servicetype'): {
'state': 0,
'value': 'http'
}
}
},
(4, 'serverpool', 'serverpool'): {
'state': 0,
'value': {
(4, 'server', 'server1'): {
'state':
'value': {
(5, 'ip', 'ip'): {
'state': 0,
'value': '30.0.0.2'
},
(5, 'port', 'port'): {
'state': 0,
'value': '80'
}
}
},
(5, 'serverpoolname', 'serverpoolname'): {
'state': 0,
'value': 'webpool'
},
(5, 'type', 'type'): {
'state': 0,
'value': 'http'
}
}
},
(7, '', '2424832_32771'): {
'state': 0,
'tag': 436,
'type': 1
},
(7, '', '2424832_49154'): {
'state': 0,
'tag': 370,
'type': 1
},
(8, '', 'LB_external_2424832_32771'): {
'encap': '2424832_32771',
'state': 0,
'vif': 'LB_external'
},
(8, '', 'LB_internal_2424832_49154'): {
'encap': '2424832_49154',
'state': 0,
'vif': 'LB_internal'
},
(10, '', 'LB_external'): {
'cifs': {
'Device1': 'eth1_0'
},
'state': 0
},
(10, '', 'LB_internal'): {
'cifs': {
'Device1': 'eth1_1'
},
'state': 0
}
}
}
},
[
{
'addr': '34.34.34.12',
'conn': 'internal'
}
]
)
Function: attachNetwork
Arguments:
(
{'creds': {
'password': 'insieme',
'username': 'admin'
},
'devs': {
'Device1': {
'creds': {
'password': 'insieme',
'username': 'admin'
},
'host': '10.0.0.2',
'port': 443,
'virtual': False
}
},
'host': '10.0.0.1',
'name': 'LB',
'port': 443,
'virtual': False
},
{(0, '', 5539): {
'ctxName': 'TenantActx1',
'state': 2,
'tenant': 'TenantA',
'value': {
(1, '', 4411): {
'absGraph': 'WebGraph',
'state': 2,
'value': {
(3, 'LoadBalancing', 'SLB'): {
'state': 2,
'value': {
(2, 'external', 'external'): {
'state': 2,
'value': {
(9, '', 'LB_external_2424832_32771'): {
'state': 0,
'target': 'LB_external_2424832_32771'
}
}
},
(2, 'internal', 'internal'): {
'state': 2,
'value': {
(9, '', 'LB_internal_2424832_49154'): {
'state': 0,
'target': 'LB_internal_2424832_49154'
}
}
},
(4, 'externalNetwork', 'externalNetwork'): {
'connector': 'external',
'state': 0,
'value': {
(6, 'externalNetworkRel', 'externalNetworkRel'): {
'state': 0,
'target': 'network/externalIP'
}
}
},
(4, 'internalNetwork', 'internalNetwork'): {
'connector': 'internal',
'state': 0,
'value': {
(6, 'internalNetworkRel', 'internalNetworkRel'): {
'state': 0,
'target': 'network/internalIP'
}
}
},
(4, 'lbvserverCfg', 'lbvserverCfg'): {
'connector': 'external',
'state': 0,
'value': {
(6, 'lbvserverRel', 'lbvserverRel'): {
'state': 0,
'target': 'lbvserver'
}
}
},
(4, 'serverpoolCfg', 'serverpoolCfg'): {
'state': 0,
'value': {
(6, 'serverpoolRel', 'serverpoolRel'): {
'state': 0,
'target': 'serverpool'
}
}
},
(4, 'vipCfg', 'vipcfg'): {
'state': 0,
'value': {
(6, 'vipRel', 'vipRel'): {
'state': 0,
'target': 'network/vipaddress'
}
}
}
}
}
}
},
(4, 'Network', 'network'): {
'state': 0,
'value': {
(4, 'ip', 'externalIP'): {
'state': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'state': 0,
'value': '20.0.0.1'
},
(5, 'netmask', 'netmask'): {
'state': 0,
'value': '255.255.255.0'
}
}
},
(4, 'ip', 'internalIP'): {
'state': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'state': 0,
'value': '30.0.0.1'
},
(5, 'netmask', 'netmask'): {
'state': 0,
'value': '255.255.255.0'
}
}
},
(4, 'ip', 'vipaddress'): {
'state': 0,
'value': {
(5, 'ipaddress', 'ipaddress'): {
'state': 0,
'value': '100.0.0.1'
},
(5, 'netmask', 'netmask'): {
'state': 0,
'value': '255.255.255.255'
}
}
}
}
},
(4, 'lbvserver', 'lbvserver'): {
'state': 0,
'value': {
(5, 'ipmask', 'ipmask'): {
'state': 0,
'value': '255.255.255.255'
},
(5, 'ipv4', 'ipv4'): {
'state': 0,
'value': '100.0.0.1'
},
(5, 'name', 'name'): {
'state': 0,
'value': 'vserver1'
},
(5, 'port', 'port'): {
'state': 0,
'value': '80'
},
(5, 'servicetype', 'servicetype'): {
'state': 0,
'value': 'http'
}
}
},
(4, 'serverpool', 'serverpool'): {
'state': 0,
'value': {
(4, 'server', 'server1'): {
'state': 0,
'value': {
(5, 'ip', 'ip'): {
'state': 0,
'value': '30.0.0.2'
},
(5, 'port', 'port'): {
'state': 0,
'value': '80'
}
}
},
(5, 'serverpoolname', 'serverpoolname'): {
'state': 0,
'value': 'webpool'
},
(5, 'type', 'type'): {
'state': 0,
'value': 'http'
}
}
},
(7, '', '2424832_32771'): {
'state': 0,
'tag': 436,
'type': 1
},
(7, '', '2424832_49154'): {
'state': 0,
'tag': 370,
'type': 1
},
(8, '', 'LB_external_2424832_32771'): {
'encap': '2424832_32771',
'state': 0,
'vif': 'LB_external'
},
(8, '', 'LB_internal_2424832_49154'): {
'encap': '2424832_49154',
'state': 0,
'vif': 'LB_internal'
},
(10, '', 'LB_external'): {
'cifs': {
'Device1': 'eth1_0'
},
'state': 0
},
(10, '', 'LB_internal'): {
'cifs': {
'Device1': 'eth1_1'
},
'state': 0
}
}
}
},
[
{
'addr': '34.34.34.0/24',
'conn': 'internal'
}
]
)