def change_username(old_username, new_username):
 _xml = '<RIBCL VERSION="2.0">\n                <LOGIN USER_LOGIN="adminname" PASSWORD="password">\n                  <USER_INFO MODE="write">\n                    <MOD_USER USER_LOGIN="{0}">\n                      <USER_NAME value="{1}"/>\n                      <USER_LOGIN value="{1}"/>\n                    </MOD_USER>\n                  </USER_INFO>\n                </LOGIN>\n              </RIBCL>'.format(old_username, new_username)
 return __execute_cmd('Change_username', _xml)

def change_username ( old_username , new_username ) : _xml = '<RIBCL VERSION="2.0">\n                <LOGIN USER_LOGIN="adminname" PASSWORD="password">\n                  <USER_INFO MODE="write">\n                    <MOD_USER USER_LOGIN="{0}">\n                      <USER_NAME value="{1}"/>\n                      <USER_LOGIN value="{1}"/>\n                    </MOD_USER>\n                  </USER_INFO>\n                </LOGIN>\n              </RIBCL>' . format ( old_username , new_username ) return __execute_cmd ( 'Change_username' , _xml )
change a username cli example: .