def set_local_address(ams_netid):<EOL>
if isinstance(ams_netid, str):<EOL><INDENT>ams_netid_st = _parse_ams_netid(ams_netid)<EOL><DEDENT>else:<EOL><INDENT>ams_netid_st = ams_netid<EOL><DEDENT>assert isinstance(ams_netid_st, SAmsNetId)<EOL>if linux:<EOL><INDENT>return adsSetLocalAddress(ams_netid_st)<EOL><DEDENT>else:<EOL><INDENT>raise ADSError(<EOL>text="<STR_LIT>"<EOL>)<EOL><DEDENT>
Set the local NetID (**Linux only**).

    :param str: new AmsNetID
    :rtype: None

    **Usage:**

        >>> import pyads
        >>> pyads.open_port()
        >>> pyads.set_local_address('0.0.0.0.1.1')