Migrate to new NETCONF stack

Changes from old sysrepo:

- sysrepod and sysrepo-plugind are no longer required, so references to
those were removed.

- New Netopeer now uses NACM - the tests neeeded to be changed, so that
they disable NACM.

- Some TSan suppressions needed to be added, because of
https://github.com/sysrepo/sysrepo/issues/2123

- sysrepo now provides easy access to a libyang context with all
modules, which means we no longer have manually fetch them to fill out
YangSchema

- sysrepo now uses a different datastore model
(https://tools.ietf.org/html/rfc8342). This changes the way sysrepo
behaves in the datastore tests, especially that running config is no
longer reset, when closing subscriptions. Because of that, the running
config is always reset at the start of a test. Also, getItems had to be
changed to use the "operational" datastore so that state data is still
fetched.

- sysrepo is now more parallelized and uses non-blocking mechanisms to
defer some actions. The most notable example is committing changes (the
new function is called `apply_changes()`). It is still possible to mimic
the old behavior, because all the "defer-able" functions have a `wait`
argument.

- As sysrepo now uses libyang internally, data can be fetched as libyang
nodes. I replaced the `sr_val_t` (and friends) to this mechanism. This
also unifies some stuff in datastore_access test (mainly the containers,
that had to be #ifdef'd).

- Inside RPC callbacks, libyang context is available. Use this context
to do libyang stuff, instead of injecting a YangSchema.

Depends-on: https://cesnet-gerrit-czechlight/c/CzechLight/dependencies/+/2884
Depends-on: https://cesnet-gerrit-public/c/CzechLight/dependencies/+/2884
Depends-on: https://gerrit.cesnet.cz/c/CzechLight/dependencies/+/2884
Change-Id: Iaf4281bc3bd6cda64ab7d8727c28b9b9d132050a
diff --git a/tests/python_netconfaccess.py b/tests/python_netconfaccess.py
index b04eb24..ae317ee 100644
--- a/tests/python_netconfaccess.py
+++ b/tests/python_netconfaccess.py
@@ -1,7 +1,8 @@
+import sysrepo_subscription_py as sr_sub
 import netconf_cli_py as nc
 
 c = nc.NetconfAccess(socketPath = "@NETOPEER_SOCKET_PATH@")
-data = c.getItems("/ietf-netconf-server:netconf-server")
+data = c.getItems("/ietf-netconf-monitoring:netconf-state/datastores")
 for (k, v) in data:
     print(f"{k}: {type(v)} {v}", flush=True)
 
@@ -9,22 +10,23 @@
     print("ERROR: No data returned from NETCONF")
     exit(1)
 
-hello_timeout_xp = "/ietf-netconf-server:netconf-server/session-options/hello-timeout"
+subscription = sr_sub.SysrepoSubscription("example-schema")
+xpath = "/example-schema:leafInt32"
 for EXPECTED in (599, 59, "61"):
-    c.setLeaf(hello_timeout_xp, EXPECTED)
+    c.setLeaf(xpath, EXPECTED)
     c.commitChanges()
-    data = c.getItems(hello_timeout_xp)
-    (_, value) = next(filter(lambda keyValue: keyValue[0] == hello_timeout_xp, data))
+    data = c.getItems(xpath)
+    (_, value) = next(filter(lambda keyValue: keyValue[0] == xpath, data))
     if value != EXPECTED:
         if isinstance(EXPECTED, str):
             if str(value) != EXPECTED:
-                print(f"ERROR: hello-timeout not updated (via string) to {EXPECTED}")
+                print(f"ERROR: leafInt32 not updated (via string) to {EXPECTED}")
                 exit(1)
         else:
-            print(f"ERROR: hello-timeout not updated to {EXPECTED}")
+            print(f"ERROR: leafInt32 not updated to {EXPECTED}")
             exit(1)
 try:
-    c.setLeaf(hello_timeout_xp, "blesmrt")
+    c.setLeaf(xpath, "blesmrt")
     c.commitChanges()
     print("ERROR: setting integer to a string did not error out")
     exit(1)