@@ -11,24 +11,7 @@ $SUDO bash -c "apt install --allow-unauthenticated -y wget gnupg2 software-prope
11
11
# golang v1.12 still not available in repos
12
12
$SUDO add-apt-repository ppa:longsleep/golang-backports -y || true
13
13
14
- # repo for libyang-dev
15
-
16
- # Cannot add the repository to our machine, as the GPG key expired on Aug 2019 and Ubuntu refuses to install the software in there
17
- # $SUDO sh -c "echo 'deb http://download.opensuse.org/repositories/home:/liberouter/xUbuntu_18.04/ /' > /etc/apt/sources.list.d/home:liberouter.list"
18
- # wget -nv https://download.opensuse.org/repositories/home:liberouter/xUbuntu_18.04/Release.key -O Release.key
19
- # $SUDO apt-key add - < Release.key
20
- # So, installing the required package by downloading it manually
21
- apt remove -y libyang libyang-dev
22
- wget -nv http://download.opensuse.org/repositories/home:/liberouter/xUbuntu_18.04/amd64/libyang_1.0.101_amd64.deb -O libyang.deb
23
- wget -nv http://download.opensuse.org/repositories/home:/liberouter/xUbuntu_18.04/amd64/libyang-dev_1.0.101_amd64.deb -O libyang-dev.deb
24
- $SUDO apt install -f ./libyang.deb
25
- $SUDO apt install -y -f ./libyang-dev.deb
26
- rm ./libyang.deb
27
- rm ./libyang-dev.deb
28
-
29
14
$SUDO apt update
30
-
31
-
32
15
PACKAGES=" "
33
16
PACKAGES+=" git" # needed to clone dependencies
34
17
PACKAGES+=" build-essential cmake" # provides compiler and other compilation tools
@@ -52,6 +35,18 @@ if [ "$MODE" == "pcn-k8s" ]; then
52
35
PACKAGES+=" iproute2" # provides bridge command that is used to add entries in vxlan device
53
36
fi
54
37
38
+ # licd $WORKDIR
39
+ set +e
40
+ if [ ! -d libyang ]; then
41
+ git clone https://github.com/CESNET/libyang.git
42
+ fi
43
+ cd libyang
44
+ git checkout v0.14-r1
45
+ mkdir -p build && cd build
46
+ cmake ..
47
+ make -j $( getconf _NPROCESSORS_ONLN)
48
+ $SUDO make install
49
+
55
50
# use non interactive to avoid blocking the install script
56
51
$SUDO bash -c " DEBIAN_FRONTEND=noninteractive apt-get install -yq $PACKAGES "
57
52
0 commit comments