Skip to content

Commit

Permalink
libyang3: cleanup any references to libyang1
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Feb 20, 2025
1 parent 83fc19d commit 7e49e23
Show file tree
Hide file tree
Showing 21 changed files with 5 additions and 530 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
# yang
/src/sonic-yang-models/ @praveen-li @dgsudharsan @rathnasabapathyv @venkatmahalingam @qiluo-msft
/src/sonic-yang-mgmt/ @sonic-net/sonic-management
/src/libyang/ @sonic-net/sonic-management
/src/libyang3/ @sonic-net/sonic-management
/src/libyang3-py3/ @sonic-net/sonic-management

Expand Down
2 changes: 1 addition & 1 deletion files/build_templates/sonic_debian_extension.j2
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ if [[ $CONFIGURED_ARCH == armhf || $CONFIGURED_ARCH == arm64 ]]; then
fi

# Install sonic-yang-models Python 3 package, install dependencies
sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path/libyang_*.deb $debs_path/libyang-cpp_*.deb $debs_path/python3-yang_*.deb $debs_path/libyang3_*.deb $debs_path/python3-libyang_*.deb || \
sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path/libyang3_*.deb $debs_path/python3-libyang_*.deb || \
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install -f
SONIC_YANG_MODEL_PY3_WHEEL_NAME=$(basename {{sonic_yang_models_py3_wheel_path}})
sudo cp {{sonic_yang_models_py3_wheel_path}} $FILESYSTEM_ROOT/$SONIC_YANG_MODEL_PY3_WHEEL_NAME
Expand Down
3 changes: 0 additions & 3 deletions platform/vs/docker-sonic-vs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ $(DOCKER_SONIC_VS)_DEPENDS += $(SYNCD_VS) \
$(LIBTEAMDCTL) \
$(LIBTEAM_UTILS) \
$(SONIC_DEVICE_DATA) \
$(LIBYANG) \
$(LIBYANG_CPP) \
$(LIBYANG_PY3) \
$(LIBYANG3) \
$(LIBYANG3_PY3) \
$(SONIC_UTILITIES_DATA) \
Expand Down
1 change: 0 additions & 1 deletion rules/docker-bmp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ $(DOCKER_BMP)_PYTHON_WHEELS = $(SONIC_BMPCFGD)
$(DOCKER_BMP)_INSTALL_DEBS = $(LIBSWSSCOMMON) \
$(SONIC_BMPD) \
$(PYTHON3_SWSSCOMMON) \
$(LIBYANG_PY3) \
$(LIBYANG3_PY3)

$(DOCKER_BMP)_DBG_DEPENDS = $($(DOCKER_CONFIG_ENGINE_BOOKWORM)_DBG_DEPENDS)
Expand Down
3 changes: 0 additions & 3 deletions rules/docker-config-engine-bookworm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ DOCKER_CONFIG_ENGINE_BOOKWORM = docker-config-engine-bookworm.gz
$(DOCKER_CONFIG_ENGINE_BOOKWORM)_PATH = $(DOCKERS_PATH)/docker-config-engine-bookworm

$(DOCKER_CONFIG_ENGINE_BOOKWORM)_DEPENDS += $(LIBSWSSCOMMON) \
$(LIBYANG) \
$(LIBYANG_CPP) \
$(LIBYANG_PY3) \
$(LIBYANG3) \
$(LIBYANG3_PY3) \
$(PYTHON3_SWSSCOMMON) \
Expand Down
3 changes: 0 additions & 3 deletions rules/docker-config-engine-bullseye.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ DOCKER_CONFIG_ENGINE_BULLSEYE = docker-config-engine-bullseye.gz
$(DOCKER_CONFIG_ENGINE_BULLSEYE)_PATH = $(DOCKERS_PATH)/docker-config-engine-bullseye

$(DOCKER_CONFIG_ENGINE_BULLSEYE)_DEPENDS += $(LIBSWSSCOMMON) \
$(LIBYANG) \
$(LIBYANG_CPP) \
$(LIBYANG_PY3) \
$(LIBYANG3) \
$(LIBYANG3_PY3) \
$(PYTHON3_SWSSCOMMON) \
Expand Down
3 changes: 0 additions & 3 deletions rules/docker-config-engine-buster.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ DOCKER_CONFIG_ENGINE_BUSTER = docker-config-engine-buster.gz
$(DOCKER_CONFIG_ENGINE_BUSTER)_PATH = $(DOCKERS_PATH)/docker-config-engine-buster

$(DOCKER_CONFIG_ENGINE_BUSTER)_DEPENDS += $(LIBSWSSCOMMON) \
$(LIBYANG) \
$(LIBYANG_CPP) \
$(LIBYANG_PY3) \
$(LIBYANG3) \
$(LIBYANG3_PY3) \
$(PYTHON3_SWSSCOMMON) \
Expand Down
2 changes: 1 addition & 1 deletion rules/docker-macsec.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $(DOCKER_MACSEC)_DBG_IMAGE_PACKAGES = $($(DOCKER_SWSS_LAYER_BOOKWORM)_DBG_IMAGE_
$(DOCKER_MACSEC)_LOAD_DOCKERS += $(DOCKER_SWSS_LAYER_BOOKWORM)

$(DOCKER_MACSEC)_INSTALL_PYTHON_WHEELS = $(SONIC_UTILITIES_PY3)
$(DOCKER_MACSEC)_INSTALL_DEBS = $(PYTHON3_SWSSCOMMON) $(LIBYANG_PY3) $(LIBYANG3_PY3)
$(DOCKER_MACSEC)_INSTALL_DEBS = $(PYTHON3_SWSSCOMMON) $(LIBYANG3_PY3)

SONIC_DOCKER_IMAGES += $(DOCKER_MACSEC)
SONIC_BOOKWORM_DOCKERS += $(DOCKER_MACSEC)
Expand Down
10 changes: 0 additions & 10 deletions rules/libyang.dep

This file was deleted.

35 changes: 0 additions & 35 deletions rules/libyang.mk

This file was deleted.

5 changes: 1 addition & 4 deletions rules/sonic-utilities.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ $(SONIC_UTILITIES_PY3)_DEPENDS += $(SONIC_PY_COMMON_PY3) \
$(SONIC_PLATFORM_COMMON_PY3) \
$(SONIC_YANG_MGMT_PY3) \
$(SONIC_YANG_MODELS_PY3)
$(SONIC_UTILITIES_PY3)_DEBS_DEPENDS = $(LIBYANG) \
$(LIBYANG_CPP) \
$(LIBYANG_PY3) \
$(LIBYANG3) \
$(SONIC_UTILITIES_PY3)_DEBS_DEPENDS = $(LIBYANG3) \
$(LIBYANG3_PY3) \
$(LIBSWSSCOMMON) \
$(PYTHON3_SWSSCOMMON)
Expand Down
5 changes: 1 addition & 4 deletions rules/sonic_bgpcfgd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ $(SONIC_BGPCFGD)_SRC_PATH = $(SRC_PATH)/sonic-bgpcfgd
$(SONIC_BGPCFGD)_DEPENDS += $(SONIC_CONFIG_ENGINE_PY3) \
$(SONIC_YANG_MGMT_PY3) \
$(SONIC_YANG_MODELS_PY3)
$(SONIC_BGPCFGD)_DEBS_DEPENDS += $(LIBYANG) \
$(LIBYANG_CPP) \
$(LIBYANG_PY3) \
$(LIBYANG3) \
$(SONIC_BGPCFGD)_DEBS_DEPENDS += $(LIBYANG3) \
$(LIBYANG3_PY3) \
$(PYTHON3_SWSSCOMMON)
$(SONIC_BGPCFGD)_PYTHON_VERSION = 3
Expand Down
2 changes: 1 addition & 1 deletion slave.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1730,4 +1730,4 @@ jessie : $$(addprefix $(TARGET_PATH)/,$$(JESSIE_DOCKER_IMAGES)) \

## To build some commonly used libs. Some submodules depend on these libs.
## It is used in component pipelines. For example: swss needs libnl, libyang
lib-packages: $(addprefix $(DEBS_PATH)/,$(LIBNL3) $(LIBYANG) $(LIBYANG3) $(PROTOBUF) $(LIB_SONIC_DASH_API))
lib-packages: $(addprefix $(DEBS_PATH)/,$(LIBNL3) $(LIBYANG3) $(PROTOBUF) $(LIB_SONIC_DASH_API))
3 changes: 0 additions & 3 deletions src/libyang/.gitignore

This file was deleted.

27 changes: 0 additions & 27 deletions src/libyang/Makefile

This file was deleted.

Loading

0 comments on commit 7e49e23

Please sign in to comment.