jetconf issueshttps://gitlab.nic.cz/labs/jetconf/-/issues2020-07-15T06:31:30+02:00https://gitlab.nic.cz/labs/jetconf/-/issues/42HTTP 1.1 support (feature request)2020-07-15T06:31:30+02:00Jake HollandHTTP 1.1 support (feature request)There are a number of clients that still do not support H2 (for example, curl on macos, and some fronting web servers). It would be helpful to support both H2 and HTTP over TLS.There are a number of clients that still do not support H2 (for example, curl on macos, and some fronting web servers). It would be helpful to support both H2 and HTTP over TLS.https://gitlab.nic.cz/labs/jetconf/-/issues/41WSGI integration (feature request)2020-07-13T20:43:10+02:00Jake HollandWSGI integration (feature request)In some environments (e.g. Elastic Beanstalk) python generally use WSGI to integrate more efficiently with nginx or other web servers.
It would be nice if jetconf had WSGI support to handle this mode of operation, by defining an "applic...In some environments (e.g. Elastic Beanstalk) python generally use WSGI to integrate more efficiently with nginx or other web servers.
It would be nice if jetconf had WSGI support to handle this mode of operation, by defining an "application(environ, start_response)" entry point that can be used to receive requests and provide appropriate RESTCONF responses when invoked by a WSGI gateway, rather than listening on a socket as when jetconf is executed from the command line.
https://www.python.org/dev/peps/pep-3333/#abstracthttps://gitlab.nic.cz/labs/jetconf/-/issues/39traceback after wrong DELETE request2018-11-03T12:49:48+01:00Petr Špačektraceback after wrong DELETE requestFollowing nonsensical request causes traceback:
```
curl --http2 -k -X DELETE 'https://127.0.0.1:8443/restconf/data/dns-server:dns-server/server-options/listen-endpoi'
```
```
During handling of the above exception, another exception oc...Following nonsensical request causes traceback:
```
curl --http2 -k -X DELETE 'https://127.0.0.1:8443/restconf/data/dns-server:dns-server/server-options/listen-endpoi'
```
```
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pspacek/pkg/jetconf/CLEAN/jetconf/jetconf/http_handlers.py", line 123, in error
err_body["error-message"] = exception.__class__.__name__ + ": " + str(exception.message)
AttributeError: 'NonexistentSchemaNode' object has no attribute 'message'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
self._callback(*self._args)
File "/usr/lib64/python3.6/asyncio/selector_events.py", line 734, in _read_ready
self._protocol.data_received(data)
File "/usr/lib64/python3.6/asyncio/sslproto.py", line 518, in data_received
self._app_protocol.data_received(chunk)
File "/home/pspacek/pkg/jetconf/CLEAN/jetconf/jetconf/rest_server.py", line 115, in data_received
self.run_request_handler(headers, event.stream_id, None)
File "/home/pspacek/pkg/jetconf/CLEAN/jetconf/jetconf/rest_server.py", line 190, in run_request_handler
resp = h(headers, data, self.client_cert)
File "/home/pspacek/pkg/jetconf/CLEAN/jetconf/jetconf/http_handlers.py", line 681, in delete_api
http_resp = self._delete(api_pth, username)
File "/home/pspacek/pkg/jetconf/CLEAN/jetconf/jetconf/http_handlers.py", line 648, in _delete
exception=e
File "/home/pspacek/pkg/jetconf/CLEAN/jetconf/jetconf/http_handlers.py", line 125, in error
err_body["error-message"] = exception.__class__.__name__ + ": " + str(exception)
File "/home/pspacek/pkg/jetconf/CLEAN/jetconf/lib64/python3.6/site-packages/yangson/exceptions.py", line 289, in __str__
prefix = "" if self.ns == self.qn[1] else self.ns + ":"
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
```https://gitlab.nic.cz/labs/jetconf/-/issues/38IPV6 support in jetconf2018-02-26T11:52:10+01:00MonalisaIPV6 support in jetconfHello Experts,
Is IPV6 support provided in jetconf, if yes kindly let me know which version it is provided
and any documentation available how to use it.
If IPV6 support is not present, i want to provide support for the same.
Since i am...Hello Experts,
Is IPV6 support provided in jetconf, if yes kindly let me know which version it is provided
and any documentation available how to use it.
If IPV6 support is not present, i want to provide support for the same.
Since i am new to socket programming kindly let me know useful links and python libraries
i can use to achieve it.
Any kind of support and help is appreciated.
Thanks & Best Regards,
Monalisahttps://gitlab.nic.cz/labs/jetconf/-/issues/37How to add multiple user to the Config file ?2018-02-12T13:04:07+01:00jayganatraHow to add multiple user to the Config file ?Hi just want to add the Username:"admin" and "user1" to the config.yaml in below format.
ALLOWED_USERS: ["admin","user1"]
I have generated the certificates for both user but can't able to connect to the server.
Can you help me with th...Hi just want to add the Username:"admin" and "user1" to the config.yaml in below format.
ALLOWED_USERS: ["admin","user1"]
I have generated the certificates for both user but can't able to connect to the server.
Can you help me with that problem?
Thanks in advance.https://gitlab.nic.cz/labs/jetconf/-/issues/35Connect to jetconf server with SSL certificate2018-02-07T11:40:20+01:00jayganatraConnect to jetconf server with SSL certificateHi I am new to jetconf. I am successfully able to connect curl base client to the jetconf server without certificate validation steps. But when i enabling the 'DBG_DISABLE_CERTS' flag, I facing problem("OpenSSL SSL_connect: SSL_ERROR_SY...Hi I am new to jetconf. I am successfully able to connect curl base client to the jetconf server without certificate validation steps. But when i enabling the 'DBG_DISABLE_CERTS' flag, I facing problem("OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 127.0.0.1:8443") to connect the client to the server.
So, Can you provide me a little guidance for that issue.
REQUEST
curl -v --http2 -k --cert-type PEM -E /home/karan/jay/RESTCONF/jetconf-master/data/example-client.pem -X GET https://10.102.3.205:8443/restconf/data/
CLIENT RESPONSE
Note: Unnecessary use of -X or --request, GET is already inferred.
* Trying 10.102.3.205...
* TCP_NODELAY set
* Connected to 10.102.3.205 (10.102.3.205) port 8443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Request CERT (13):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Certificate (11):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS handshake, CERT verify (15):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 10.102.3.205:8443
* stopped the pause stream!
* Closing connection 0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 10.102.3.205:8443
SERVER RESPONSE
2018-01-30 12:03:18,963 INFO Jetconf version 0.3.4
2018-01-30 12:03:18,965 INFO Using config:
GLOBAL:
BACKEND_PACKAGE: jetconf_jukebox
DATA_JSON_FILE: /home/karan/jay/RESTCONF/jukebox-jetconf-master/example-data.json
LOGFILE: '-'
LOG_DBG_MODULES:
- usr_conf_data_handlers
- knot_api
- nacm
- data
LOG_LEVEL: debug
PERSISTENT_CHANGES: false
PIDFILE: /tmp/jetconf.pid
TIMEZONE: Europe/Prague
VALIDATE_TRANSACTIONS: true
YANG_LIB_DIR: /home/karan//jay/RESTCONF/jukebox-jetconf-master/yang-modules/
HTTP_SERVER:
API_ROOT: /restconf
API_ROOT_RUNNING: /restconf_running
CA_CERT: /home/karan/jay/RESTCONF/jetconf-master/data/ca.pem
DBG_DISABLE_CERTS: false
DOC_DEFAULT_NAME: index.html
DOC_ROOT: /home/karan/jay/RESTCONF/jetconf-master/data/doc-root/
LISTEN_LOCALHOST_ONLY: false
PORT: 8443
SERVER_NAME: jetconf-h2
SERVER_SSL_CERT: /home/karan/jay/RESTCONF/jetconf-master/data/server.crt
SERVER_SSL_PRIVKEY: /home/karan/jay/RESTCONF/jetconf-master/data/server.key
UPLOAD_SIZE_LIMIT: 1
NACM:
ALLOWED_USERS:
- lojza@mail.cz
ENABLED: true
2018-01-30 12:03:19,093 INFO Backend: init
2018-01-30 12:03:19,094 INFO Server started on ('10.102.3.205', 8443)
Thanks in Advance.https://gitlab.nic.cz/labs/jetconf/-/issues/5Support for notifications2017-09-30T09:07:15+02:00Ladislav LhotkaSupport for notificationsSupport for notifications via Server-Sent Events [[SSE](http://www.w3.org/TR/2012/CR-eventsource-20121211/)] is optional in RESTCONF. Shall we support them from the start?Support for notifications via Server-Sent Events [[SSE](http://www.w3.org/TR/2012/CR-eventsource-20121211/)] is optional in RESTCONF. Shall we support them from the start?Ladislav LhotkaLadislav Lhotkahttps://gitlab.nic.cz/labs/jetconf/-/issues/20Continuous integration2017-09-30T09:07:15+02:00Ladislav LhotkaContinuous integrationTasks:
- [ ] agree on rules and tools
- [ ] setup CI hooksTasks:
- [ ] agree on rules and tools
- [ ] setup CI hooksProject organizationLadislav LhotkaLadislav Lhotkahttps://gitlab.nic.cz/labs/jetconf/-/issues/21Tests2017-09-30T09:07:15+02:00Ladislav LhotkaTests- [x] agree on rules and tools for testing
- [ ] setup the testing infrastructure- [x] agree on rules and tools for testing
- [ ] setup the testing infrastructureProject organizationLadislav LhotkaLadislav Lhotka