In order to use this M-plane project, libyang and libnetconf2 libraries should exist.
You can use the provided scripts to compile these libraries depending on the targeted version:
./build_deps_v1.sh
./build_deps_v2.shThe libraries are built in /opt/mplane-v1 or /opt/mplane-v2 path.
vi config-mplane.c #line 45mkdir build && cd build
cmake -DMPLANE_PATH=/opt/mplane-v1 -DMPLANE_VERSION=V1 ..
makemkdir build && cd build
cmake -DMPLANE_PATH=/opt/mplane-v2 -DMPLANE_VERSION=V2 ..
make./my_client <ru-ip-address> ...If no <ru-ip-address> specified, nc_listen_ssh() command is used instead of nc_connect_ssh().
RU-controller takes the following steps:
- Connect to the RUs
- Retreive operational datastore via RPC
- Load the RU supported yang models
- Extract RU delay profile
- Check the RU PTP status. If not synced, subscription to synchronization-state-change
- Configure CU-plane via RPC
- Validate the candidate datastore via RPC
- Commit the candidate datastore via RPC
- Disconnect from the RUs
At this stage, RUs are well configured and ready for testing.