sonic-buildimage/src
Joe LeVeque ee1383791c
[sonic-py-common] Add 'general' module with load_module_from_source() function (#7167)
#### Why I did it

To eliminate the need to write duplicate code in order to import a Python module from a source file.

#### How I did it

Add `general` module to sonic-py-common, which contains a `load_module_from_source()` function which supports both Python 2 and 3.

Call this new function in:
- sonic-ctrmgrd/tests/container_test.py
- sonic-ctrmgrd/tests/ctrmgr_tools_test.py
- sonic-host-services/tests/determine-reboot-cause_test.py
- sonic-host-services/tests/hostcfgd/hostcfgd_test.py
- sonic-host-services/tests/procdockerstatsd_test.py
- sonic-py-common/sonic_py_common/daemon_base.py
2021-04-08 08:29:28 -07:00
..
bash [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
dhcpmon [dhcpmon] Print Both Snapshot And Current Counters (#5374) 2020-09-15 15:27:36 -07:00
ethtool Backport ethtool to support QSFP-DD (#5725) 2021-03-16 09:56:53 -07:00
gobgp Update go version to 1.11.2 for gobgp and telemetry (#2230) 2018-11-09 21:56:39 -08:00
hiredis [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
iccpd [iccpd] Fix the bug of iccp cmd show. (#5214) 2020-09-01 13:07:13 -07:00
ifupdown2 [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
initramfs-tools [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
iproute2 [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
iptables [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
isc-dhcp DHCP Relay: add option -si to support using src intf ip in relay (#7052) 2021-03-19 13:27:14 -07:00
ixgbe Reorganize .gitignore files (#4707) 2020-06-09 21:04:55 -07:00
kdump-tools [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
libnl3 [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
libteam [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
libyang Export libyang API "lyd_check_mandatory_tree" for Management framework (CVL) (#5714) 2021-01-14 16:47:57 -08:00
libyang1 [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
lldpd [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
lm-sensors [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
monit [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
mpdecimal [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
ntp [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
openssh [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
ptf@36a3e3d9ac [docker-sonic-mgmt] install ptf framework in mgmt container and upgrade ptf (#3239) 2019-07-30 10:19:48 -07:00
redis [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
redis-dump-load@7585497951 [redis-dump-load] Update submodule (#5215) 2020-08-19 11:23:42 -07:00
redis-dump-load.patch [baseimage]: Build and install redis-dump-load Python 3 package in host image (#4661) 2020-05-30 05:52:27 -07:00
sflow [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
smartmontools [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
snmpd [arm64] disable snmp's parallel make (#6592) 2021-01-31 17:30:30 -08:00
socat [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
sonic-bgpcfgd [bgp]: Reduce bgp connect retry timer to 10 seconds (#7169) 2021-03-27 11:36:56 -07:00
sonic-build-hooks [build]: Fix pip3 hook ENABLE_VERSION_CONTROL_PY param (#7147) 2021-04-01 22:43:34 -07:00
sonic-config-engine [multi-asic] Make sure Everflow tables always gets classified as Mirror table (#7241) 2021-04-07 13:35:34 -07:00
sonic-ctrmgrd [sonic-py-common] Add 'general' module with load_module_from_source() function (#7167) 2021-04-08 08:29:28 -07:00
sonic-dbsyncd@df46ed418e [submodule update] sonic-db-syncd (#7225) 2021-04-03 07:36:11 -07:00
sonic-device-data Revert "Add fabric lane mapping to vs (sai.profile) and HWSKU Force10-S6000 (#6185)" (#7250) 2021-04-07 09:57:16 -07:00
sonic-frr [frr]: upgrade frr to frr-7.5.1 (#7003) 2021-03-10 12:50:54 -08:00
sonic-frr-mgmt-framework Bump pyyaml from 5.3.1 to 5.4.1 (#6511) 2021-01-28 10:46:56 -08:00
sonic-host-services [sonic-py-common] Add 'general' module with load_module_from_source() function (#7167) 2021-04-08 08:29:28 -07:00
sonic-host-services-data [services] introduce sonic.target (#5705) 2021-02-25 14:26:24 +02:00
sonic-linux-kernel@deddc61bd0 [submodule]: update sonic-linux-kernel (#7211) 2021-04-01 08:36:30 -07:00
sonic-mgmt-common@86c1108125 [sonic-mgmt-common] Update submodule (#6129) 2020-12-08 04:31:16 -08:00
sonic-mgmt-framework@3c3384cec8 Mgmt reorg -- submodule and build rules for sonic-mgmt-common (#4765) 2020-06-22 16:01:55 -07:00
sonic-platform-common@872f0a306b [sonic-platform-common] submodule update (#7253) 2021-04-07 22:01:04 -07:00
sonic-platform-daemons@0bd9f698f7 [sonic-platform-daemons] Update submodule (#7251) 2021-04-08 00:19:51 -07:00
sonic-py-common [sonic-py-common] Add 'general' module with load_module_from_source() function (#7167) 2021-04-08 08:29:28 -07:00
sonic-py-swsssdk@6e42d58c15 [sonic-py-swsssdk] update submodule: fix fdbshow, show arp commands (#6074) 2020-12-02 18:17:24 -08:00
sonic-quagga@e3b3b634e7 [sonic-quagga] update submodule with multiDB Changes (#4557) 2020-05-27 11:12:33 -07:00
sonic-restapi@8d09602a9e [submodule]: Update restapi (#7213) 2021-04-01 22:40:55 -07:00
sonic-sairedis@1942d730e0 Submodule update sai-redis (#7223) 2021-04-05 15:28:15 -07:00
sonic-snmpagent@c20bf60436 [Submodule update] sonic-snmpagent (#7107) 2021-03-24 18:46:18 -07:00
sonic-swss@fa983d2e2b [sonic-swss] Update submodule (#7197) 2021-03-31 10:45:36 -07:00
sonic-swss-common@c2ccaa36c9 [submodule]: update swss-common (#7121) 2021-03-29 15:23:50 -07:00
sonic-telemetry@7cd86c5a6b [submodule]: update telemetry submodule (#6810) 2021-02-24 17:22:54 -08:00
sonic-utilities@597639943a [submodule]: Advance sonic-utilities submodule. (#7246) 2021-04-07 09:26:42 -07:00
sonic-yang-mgmt [yang-models]: Remove PLY Extensions and change translation code. (#6915) 2021-03-28 00:49:10 -07:00
sonic-yang-models [yang]: Split yang tests into multiple files (#6939) 2021-03-31 10:58:13 -07:00
sonic-ztp@911d62238c [sonic-utilities] Build and install as a Python wheel package (#5409) 2020-09-20 20:16:42 -07:00
swig [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
system-health [dell]: System Health: Fix ASIC key issue in Dell platform (#6556) 2021-04-05 18:00:38 -07:00
systemd-sonic-generator [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
tacacs [tacacs]: do not modify local user if there is no priviledge 2021-02-06 12:28:52 -08:00
thrift Fix CVE-2017-1000487 security alert (#7173) 2021-03-31 22:45:06 -07:00
wpasupplicant [MACsec]: Set MACsec feature to be auto-start (#6678) 2021-02-23 13:22:45 -08:00