API get_self_slot

get_self_slot

Use get_self_slot to get the member ID of the master device.

Syntax

get_self_slot()

Returns

A list object in the format [-1,slot-number], where slot-number indicates the member ID of the master device.

Examples

# Get the member ID of the master device.

<Sysname> python
Python 2.7.3 (default, May 24 2014, 14:37:26)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import comware
>>> comware.get_self_slot()

Sample output

[-1,1]