Skip to content

Commit

Permalink
[sonic-mgmt-framework]: Resolve libyang dependency for mgmt builds (s…
Browse files Browse the repository at this point in the history
…onic-net#214)

Second version of libyang (v1.0.184) has been introduced recently.
Changed PR build scripts of sonic-mgmt-common, sonic-mgmt-framework and
sonic-telemetry repos to explicitly pick old libyang 1.0.73.
  • Loading branch information
sachinholla authored Jan 11, 2021
1 parent 2a36727 commit eff9ade
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/common/sonic-mgmt-common-build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sudo sed -ri 's/redis-server.sock/redis.sock/' /etc/redis/redis.conf
sudo service redis-server start

# LIBYANG
sudo dpkg -i buildimage/target/debs/${DISTRO}/libyang*.deb
sudo dpkg -i buildimage/target/debs/${DISTRO}/libyang*1.0.73*.deb


pushd sonic-mgmt-common
Expand Down
2 changes: 1 addition & 1 deletion scripts/common/sonic-mgmt-framework-build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sudo sed -ri 's/redis-server.sock/redis.sock/' /etc/redis/redis.conf
sudo service redis-server start

# LIBYANG
sudo dpkg -i buildimage/target/debs/${DISTRO}/libyang*.deb
sudo dpkg -i buildimage/target/debs/${DISTRO}/libyang*1.0.73*.deb

# Install from "requirement" files in sonic-mgmt-framework/tools/test directory.
pushd sonic-mgmt-framework/tools/test
Expand Down
2 changes: 1 addition & 1 deletion scripts/common/sonic-telemetry-build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ sudo sed -ri 's/redis-server.sock/redis.sock/' /etc/redis/redis.conf
sudo service redis-server start

# Install libyang
sudo dpkg -i buildimage/target/debs/buster/libyang*.deb
sudo dpkg -i buildimage/target/debs/buster/libyang*1.0.73*.deb

# Build sonic-mgmt-common first

Expand Down

0 comments on commit eff9ade

Please sign in to comment.