Skip to content
Snippets Groups Projects
Commit ab387687 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

NBI component:

- Updated README.md file
- Fixed libyang version in Dockerfile
- Fixed libyang version in install_requirements.sh
- Added folder libyang to global gitignore
- Added generation of .gitignore file for libyang/build
parent 2c26a307
No related branches found
No related tags found
2 merge requests!235Release TeraFlowSDN 3.0,!230Resolve "Fix libyang version in NBI component"
...@@ -171,5 +171,8 @@ local_k8s_deployment.sh ...@@ -171,5 +171,8 @@ local_k8s_deployment.sh
# asdf configuration # asdf configuration
.tool-versions .tool-versions
# libyang build files
libyang/
# Other logs # Other logs
**/logs/*.log.* **/logs/*.log.*
...@@ -32,8 +32,11 @@ sudo apt-get --yes --quiet --quiet update ...@@ -32,8 +32,11 @@ sudo apt-get --yes --quiet --quiet update
sudo apt-get --yes --quiet --quiet install build-essential cmake libpcre2-dev python3-dev python3-cffi sudo apt-get --yes --quiet --quiet install build-essential cmake libpcre2-dev python3-dev python3-cffi
mkdir libyang mkdir libyang
git clone https://github.com/CESNET/libyang.git libyang git clone https://github.com/CESNET/libyang.git libyang
git fetch
git checkout v2.1.148
mkdir libyang/build mkdir libyang/build
cd libyang/build cd libyang/build
echo "*" > .gitignore
cmake -D CMAKE_BUILD_TYPE:String="Release" .. cmake -D CMAKE_BUILD_TYPE:String="Release" ..
make make
sudo make install sudo make install
......
...@@ -61,6 +61,9 @@ RUN apt-get --yes --quiet --quiet update && \ ...@@ -61,6 +61,9 @@ RUN apt-get --yes --quiet --quiet update && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/libyang RUN mkdir -p /var/libyang
RUN git clone https://github.com/CESNET/libyang.git /var/libyang RUN git clone https://github.com/CESNET/libyang.git /var/libyang
WORKDIR /var/libyang
RUN git fetch
RUN git checkout v2.1.148
RUN mkdir -p /var/libyang/build RUN mkdir -p /var/libyang/build
WORKDIR /var/libyang/build WORKDIR /var/libyang/build
RUN cmake -D CMAKE_BUILD_TYPE:String="Release" .. RUN cmake -D CMAKE_BUILD_TYPE:String="Release" ..
......
...@@ -18,6 +18,9 @@ sudo apt-get install python3-dev gcc python3-cffi ...@@ -18,6 +18,9 @@ sudo apt-get install python3-dev gcc python3-cffi
```bash ```bash
mkdir ~/tfs-ctrl/libyang mkdir ~/tfs-ctrl/libyang
git clone https://github.com/CESNET/libyang.git ~/tfs-ctrl/libyang git clone https://github.com/CESNET/libyang.git ~/tfs-ctrl/libyang
cd ~/tfs-ctrl/libyang
git fetch
git checkout v2.1.148
mkdir ~/tfs-ctrl/libyang/build mkdir ~/tfs-ctrl/libyang/build
cd ~/tfs-ctrl/libyang/build cd ~/tfs-ctrl/libyang/build
cmake -D CMAKE_BUILD_TYPE:String="Release" .. cmake -D CMAKE_BUILD_TYPE:String="Release" ..
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment