def set_https_port(port=443):
 _current = global_settings()
 if (_current['Global Settings']['HTTP_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                      <HTTPS_PORT value="{0}"/>\n                    </MOD_GLOBAL_SETTINGS>\n                  </RIB_INFO>\n                </LOGIN>\n              </RIBCL>'.format(port)
 return __execute_cmd('Set_HTTPS_Port', _xml)

def set_https_port ( port = 443 ) : _current = global_settings ( ) if ( _current [ 'Global Settings' ] [ 'HTTP_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                      <HTTPS_PORT value="{0}"/>\n                    </MOD_GLOBAL_SETTINGS>\n                  </RIB_INFO>\n                </LOGIN>\n              </RIBCL>' . format ( port ) return __execute_cmd ( 'Set_HTTPS_Port' , _xml )
configure the port https should listen on cli example: .