def set_ssh_port(port=22):
 _current = global_settings()
 if (_current['Global Settings']['SSH_PORT']['VALUE'] == port):
  return True
 _xml = '<RIBCL VERSION="2.0">\n                <LOGIN USER_LOGIN="adminname" PASSWORD="password">\n                  <RIB_INFO MODE="write">\n                    <MOD_GLOBAL_SETTINGS>\n                       <SSH_PORT value="{0}"/>\n                    </MOD_GLOBAL_SETTINGS>\n                  </RIB_INFO>\n                </LOGIN>\n              </RIBCL>'.format(port)
 return __execute_cmd('Configure_SSH_Port', _xml)

def set_ssh_port ( port = 22 ) : _current = global_settings ( ) if ( _current [ 'Global Settings' ] [ 'SSH_PORT' ] [ 'VALUE' ] == port ) : return True _xml = '<RIBCL VERSION="2.0">\n                <LOGIN USER_LOGIN="adminname" PASSWORD="password">\n                  <RIB_INFO MODE="write">\n                    <MOD_GLOBAL_SETTINGS>\n                       <SSH_PORT value="{0}"/>\n                    </MOD_GLOBAL_SETTINGS>\n                  </RIB_INFO>\n                </LOGIN>\n              </RIBCL>' . format ( port ) return __execute_cmd ( 'Configure_SSH_Port' , _xml )
set ssh port .