Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide dependency of sonic-config-engine on 'sonic-platform-common' … #3912

Merged
merged 1 commit into from
Mar 22, 2020

Conversation

samaity
Copy link
Collaborator

@samaity samaity commented Dec 15, 2019

…wheel package

Signed-off-by: Sangita Maity [email protected]

This PR is needed by sonic-platform-common PR and sonic-utilities PR.

All three PRs are necessary to run the below command.

  1. Azure/sonic-buildimage#3912
  2. [sfputilbase | sfputilhelper] Add support of platform.json sonic-platform-common#72
  3. [sfputil] Add support of platform.json sonic-utilities#767
Usage: show interfaces transceiver [OPTIONS] COMMAND [ARGS]...

  Show SFP Transceiver information

Options:
  -?, -h, --help  Show this message and exit.

Commands:
  eeprom    Show interface transceiver EEPROM information
  lpmode    Show interface transceiver low-power mode status
  presence  Show interface transceiver presence

- What I did
Provide dependency of sonic-config-engine on sonic-platform-common wheel package.
- How I did it
added rules in rules/sonic-platform-common.mk
- How to verify it

samaity@a8097da3a914:/sonic$ BLDENV=stretch make -f slave.mk target/python-wheels/sonic_platform_common-1.0-py2-none-any.whl-clean
SONiC Build System

Build Configuration
"CONFIGURED_PLATFORM"             : "vs"
"CONFIGURED_ARCH"                 : "amd64"
"SONIC_CONFIG_PRINT_DEPENDENCIES" : ""
"SONIC_BUILD_JOBS"                : "1"
"SONIC_CONFIG_MAKE_JOBS"          : "24"
"SONIC_USE_DOCKER_BUILDKIT"       : ""
"USERNAME"                        : "admin"
"PASSWORD"                        : "admin123"
"ENABLE_DHCP_GRAPH_SERVICE"       : ""
"SHUTDOWN_BGP_ON_START"           : ""
"ENABLE_PFCWD_ON_START"           : ""
"INSTALL_DEBUG_TOOLS"             : ""
"ROUTING_STACK"                   : "frr"
"FRR_USER_UID"                    : "300"
"FRR_USER_GID"                    : "300"
"ENABLE_SYNCD_RPC"                : ""
"ENABLE_ORGANIZATION_EXTENSIONS"  : "y"
"HTTP_PROXY"                      : ""
"HTTPS_PROXY"                     : ""
"ENABLE_SYSTEM_TELEMETRY"         : "y"
"SONIC_DEBUGGING_ON"              : ""
"SONIC_PROFILING_ON"              : ""
"KERNEL_PROCURE_METHOD"           : "build"
"BUILD_TIMESTAMP"                 : ""
"BLDENV"                          : "stretch"
"VS_PREPARE_MEM"                  : "yes"
"ENABLE_SFLOW"                    : "y"

samaity@a8097da3a914:/sonic$ BLDENV=stretch make -f slave.mk target/python-wheels/sonic_platform_common-1.0-py2-none-any.whl
SONiC Build System

Build Configuration
"CONFIGURED_PLATFORM"             : "vs"
"CONFIGURED_ARCH"                 : "amd64"
"SONIC_CONFIG_PRINT_DEPENDENCIES" : ""
"SONIC_BUILD_JOBS"                : "1"
"SONIC_CONFIG_MAKE_JOBS"          : "24"
"SONIC_USE_DOCKER_BUILDKIT"       : ""
"USERNAME"                        : "admin"
"PASSWORD"                        : "admin123"
"ENABLE_DHCP_GRAPH_SERVICE"       : ""
"SHUTDOWN_BGP_ON_START"           : ""
"ENABLE_PFCWD_ON_START"           : ""
"INSTALL_DEBUG_TOOLS"             : ""
"ROUTING_STACK"                   : "frr"
"FRR_USER_UID"                    : "300"
"FRR_USER_GID"                    : "300"
"ENABLE_SYNCD_RPC"                : ""
"ENABLE_ORGANIZATION_EXTENSIONS"  : "y"
"HTTP_PROXY"                      : ""
"HTTPS_PROXY"                     : ""
"ENABLE_SYSTEM_TELEMETRY"         : "y"
"SONIC_DEBUGGING_ON"              : ""
"SONIC_PROFILING_ON"              : ""
"KERNEL_PROCURE_METHOD"           : "build"
"BUILD_TIMESTAMP"                 : ""
"BLDENV"                          : "stretch"
"VS_PREPARE_MEM"                  : "yes"
"ENABLE_SFLOW"                    : "y"

samaity@a8097da3a914:/sonic$ BLDENV=stretch make -f slave.mk target/python-wheels/sonic_platform_common-1.0-py3-none-any.whl-clean
SONiC Build System

Build Configuration
"CONFIGURED_PLATFORM"             : "vs"
"CONFIGURED_ARCH"                 : "amd64"
"SONIC_CONFIG_PRINT_DEPENDENCIES" : ""
"SONIC_BUILD_JOBS"                : "1"
"SONIC_CONFIG_MAKE_JOBS"          : "24"
"SONIC_USE_DOCKER_BUILDKIT"       : ""
"USERNAME"                        : "admin"
"PASSWORD"                        : "admin123"
"ENABLE_DHCP_GRAPH_SERVICE"       : ""
"SHUTDOWN_BGP_ON_START"           : ""
"ENABLE_PFCWD_ON_START"           : ""
"INSTALL_DEBUG_TOOLS"             : ""
"ROUTING_STACK"                   : "frr"
"FRR_USER_UID"                    : "300"
"FRR_USER_GID"                    : "300"
"ENABLE_SYNCD_RPC"                : ""
"ENABLE_ORGANIZATION_EXTENSIONS"  : "y"
"HTTP_PROXY"                      : ""
"HTTPS_PROXY"                     : ""
"ENABLE_SYSTEM_TELEMETRY"         : "y"
"SONIC_DEBUGGING_ON"              : ""
"SONIC_PROFILING_ON"              : ""
"KERNEL_PROCURE_METHOD"           : "build"
"BUILD_TIMESTAMP"                 : ""
"BLDENV"                          : "stretch"
"VS_PREPARE_MEM"                  : "yes"
"ENABLE_SFLOW"                    : "y"

samaity@a8097da3a914:/sonic$ BLDENV=stretch make -f slave.mk target/python-wheels/sonic_platform_common-1.0-py3-none-any.whl
SONiC Build System

Build Configuration
"CONFIGURED_PLATFORM"             : "vs"
"CONFIGURED_ARCH"                 : "amd64"
"SONIC_CONFIG_PRINT_DEPENDENCIES" : ""
"SONIC_BUILD_JOBS"                : "1"
"SONIC_CONFIG_MAKE_JOBS"          : "24"
"SONIC_USE_DOCKER_BUILDKIT"       : ""
"USERNAME"                        : "admin"
"PASSWORD"                        : "admin123"
"ENABLE_DHCP_GRAPH_SERVICE"       : ""
"SHUTDOWN_BGP_ON_START"           : ""
"ENABLE_PFCWD_ON_START"           : ""
"INSTALL_DEBUG_TOOLS"             : ""
"ROUTING_STACK"                   : "frr"
"FRR_USER_UID"                    : "300"
"FRR_USER_GID"                    : "300"
"ENABLE_SYNCD_RPC"                : ""
"ENABLE_ORGANIZATION_EXTENSIONS"  : "y"
"HTTP_PROXY"                      : ""
"HTTPS_PROXY"                     : ""
"ENABLE_SYSTEM_TELEMETRY"         : "y"
"SONIC_DEBUGGING_ON"              : ""
"SONIC_PROFILING_ON"              : ""
"KERNEL_PROCURE_METHOD"           : "build"
"BUILD_TIMESTAMP"                 : ""
"BLDENV"                          : "stretch"
"VS_PREPARE_MEM"                  : "yes"
"ENABLE_SFLOW"                    : "y"

samaity@a8097da3a914:/sonic$ ls -la target/python-wheels/
total 660
drwxr-xr-x 2 samaity gsamaity   4096 Dec 15 14:00 .
drwxr-xr-x 6 samaity gsamaity   4096 Dec 12 09:22 ..
-rw-r--r-- 1 samaity gsamaity  44883 Dec 11 02:47 sonic_config_engine-1.0-py2-none-any.whl
-rw-r--r-- 1 samaity gsamaity   1853 Dec 15 14:00 sonic_config_engine-1.0-py2-none-any.whl-install.log
-rw-r--r-- 1 samaity gsamaity 171679 Dec 11 02:47 sonic_config_engine-1.0-py2-none-any.whl.log
-rw-r--r-- 1 samaity gsamaity 128374 Nov 26 21:33 sonic_config_engine-1.0-py2-none-any.whl.log.bak
-rw-r--r-- 1 samaity gsamaity   3836 Dec 10 20:04 sonic_config_engine-1.0-py3-none-any.whl.log
-rw-r--r-- 1 samaity gsamaity   4539 Nov  5 22:40 sonic_daemon_base-1.0-py2-none-any.whl
-rw-r--r-- 1 samaity gsamaity   1947 Nov  5 22:40 sonic_daemon_base-1.0-py2-none-any.whl.log
-rw-r--r-- 1 samaity gsamaity 111768 Dec 15 14:00 sonic_platform_common-1.0-py2-none-any.whl
-rw-r--r-- 1 samaity gsamaity    676 Dec 15 14:00 sonic_platform_common-1.0-py2-none-any.whl-install.log
-rw-r--r-- 1 samaity gsamaity   7444 Dec 15 14:00 sonic_platform_common-1.0-py2-none-any.whl.log
-rw-r--r-- 1 samaity gsamaity 111715 Dec 15 14:00 sonic_platform_common-1.0-py3-none-any.whl
-rw-r--r-- 1 samaity gsamaity   6176 Dec 15 14:00 sonic_platform_common-1.0-py3-none-any.whl.log
-rw-r--r-- 1 samaity gsamaity  13712 Dec  6 08:54 swsssdk-2.0.1-py2-none-any.whl
-rw-r--r-- 1 samaity gsamaity    761 Dec 15 14:00 swsssdk-2.0.1-py2-none-any.whl-install.log
-rw-r--r-- 1 samaity gsamaity   2426 Dec  6 08:54 swsssdk-2.0.1-py2-none-any.whl.log
-rw-r--r-- 1 samaity gsamaity  13650 Dec 10 20:04 swsssdk-2.0.1-py3-none-any.whl
-rw-r--r-- 1 samaity gsamaity    779 Dec 10 20:04 swsssdk-2.0.1-py3-none-any.whl-install.log
-rw-r--r-- 1 samaity gsamaity   2290 Dec 10 20:04 swsssdk-2.0.1-py3-none-any.whl.log

@jleveque
Copy link
Contributor

Retest vsimage please

1 similar comment
@jleveque
Copy link
Contributor

jleveque commented Feb 7, 2020

Retest vsimage please

@lguohan lguohan merged commit 0dc047c into sonic-net:master Mar 22, 2020
jleveque pushed a commit to sonic-net/sonic-utilities that referenced this pull request Jun 11, 2020
Signed-off-by: Sangita Maity <[email protected]>

> This PR is dependent on [sonic-platform-common/pull/72](sonic-net/sonic-platform-common#72)

All three PRs are necessary to run `show interfaces transceiver` command.

1. [sonic-net/sonic-buildimage#3912](sonic-net/sonic-buildimage#3912)
2. [sonic-net/sonic-platform-common#72](sonic-net/sonic-platform-common#72)
3. [#767](#767)


**- What I did**
Add support of platform.json in sfputil to get correct output of `show interfaces transceiver`


**- How to verify it**
Check whether all the below-mentioned CLI's are working correctly.
```
Usage: show interfaces transceiver [OPTIONS] COMMAND [ARGS]...

  Show SFP Transceiver information

Options:
  -?, -h, --help  Show this message and exit.

Commands:
  eeprom    Show interface transceiver EEPROM information
  lpmode    Show interface transceiver low-power mode status
  presence  Show interface transceiver presence
```
abdosi pushed a commit to abdosi/sonic-utilities that referenced this pull request Aug 4, 2020
Signed-off-by: Sangita Maity <[email protected]>

> This PR is dependent on [sonic-platform-common/pull/72](sonic-net/sonic-platform-common#72)

All three PRs are necessary to run `show interfaces transceiver` command.

1. [sonic-net/sonic-buildimage#3912](sonic-net/sonic-buildimage#3912)
2. [sonic-net/sonic-platform-common#72](sonic-net/sonic-platform-common#72)
3. [sonic-net#767](sonic-net#767)


**- What I did**
Add support of platform.json in sfputil to get correct output of `show interfaces transceiver`


**- How to verify it**
Check whether all the below-mentioned CLI's are working correctly.
```
Usage: show interfaces transceiver [OPTIONS] COMMAND [ARGS]...

  Show SFP Transceiver information

Options:
  -?, -h, --help  Show this message and exit.

Commands:
  eeprom    Show interface transceiver EEPROM information
  lpmode    Show interface transceiver low-power mode status
  presence  Show interface transceiver presence
```
malletvapid23 added a commit to malletvapid23/Sonic-Utility that referenced this pull request Aug 3, 2023
Signed-off-by: Sangita Maity <[email protected]>

> This PR is dependent on [sonic-platform-common/pull/72](sonic-net/sonic-platform-common#72)

All three PRs are necessary to run `show interfaces transceiver` command.

1. [sonic-net/sonic-buildimage#3912](sonic-net/sonic-buildimage#3912)
2. [sonic-net/sonic-platform-common#72](sonic-net/sonic-platform-common#72)
3. [sonic-net/sonic-utilities#767](sonic-net/sonic-utilities#767)


**- What I did**
Add support of platform.json in sfputil to get correct output of `show interfaces transceiver`


**- How to verify it**
Check whether all the below-mentioned CLI's are working correctly.
```
Usage: show interfaces transceiver [OPTIONS] COMMAND [ARGS]...

  Show SFP Transceiver information

Options:
  -?, -h, --help  Show this message and exit.

Commands:
  eeprom    Show interface transceiver EEPROM information
  lpmode    Show interface transceiver low-power mode status
  presence  Show interface transceiver presence
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants