File: SoftLayer_Network_Subnet.py

package info (click to toggle)
python-softlayer 6.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,508 kB
  • sloc: python: 57,195; makefile: 133; xml: 97; sh: 59
file content (51 lines) | stat: -rw-r--r-- 1,180 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
getObject = {
    'id': 1234,
    'billingItem': {
        'id': 1056
    },
    'number': 999,
    'networkIdentifier': '1.2.3.4',
    'cidr': '26',
    'subnetType': 'ADDITIONAL_PRIMARY',
    'networkVlan': {
        'networkSpace': 'PUBLIC',
        'primaryRouter': {
            'fullyQualifiedDomainName': 'fcr03a.dal13.softlayer.com'
        }
    },
    'gateway': '1.2.3.254',
    'broadcastAddress': '1.2.3.255',
    'datacenter': {
        'name': 'dal10',
        'id': 1
    },
    'virtualGuests': [
        {
            'hostname': 'hostname0',
            'domain': 'sl.test',
            'primaryIpAddress': '1.2.3.10',
            'primaryBackendIpAddress': '10.0.1.2'
        }
    ],
    'hardware': [],
    'usableIpAddressCount': 22,
    'note': 'test note',
    'tagReferences': [
        {'id': 1000123,
         'resourceTableId': 1234,
         'tag': {'id': 100123,
                 'name': 'subnet: test tag'},
         }
    ],
    'ipAddresses': [
        {'id': 123456,
         'ipAddress': '16.26.26.25'},
        {'id': 123457,
         'ipAddress': '16.26.26.26'}]
}

editNote = True
setTags = True
cancel = True
route = True
clearRoute = True