sonic-buildimage/src
geogchen 9a6da79c40
[Interfaces] Add more unit tests for interfaces.j2 (#11277)
<!--
     Please make sure you've read and understood our contributing guidelines:
     https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

     ** Make sure all your commits include a signature generated with `git commit -s` **

     If this is a bug fix, make sure your description includes "fixes #xxxx", or
     "closes #xxxx" or "resolves #xxxx"

     Please provide the following information:
-->

#### Why I did it
The tests that are available for interfaces.j2 only covers the case when ZTP is disabled and MGMT_INTERFACE is defined.  This change adds unit tests for:
1) When ZTP is enabled, with combination of (ip enabled/disabled, inband enabled/disabled)
2) When ZTP is disabled, and MGMT_INTERFACE is not defined, with mgmtVrfEnabled set to true/false

#### How I did it
I created multiple mock-up files to:
1) Enable/disable ZTP, and subconditions under ZTP
2) Created graph file that has no management interface defined

#### How to verify it
Compared output with interfaces.j2 template to ensure the output is expected.

#### Which release branch to backport (provide reason below if selected)

<!--
- Note we only backport fixes to a release branch, *not* features!
- Please also provide a reason for the backporting below.
- e.g.
- [x] 202006
-->

- [ ] 201811
- [ ] 201911
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111
- [ ] 202205

#### Description for the changelog
<!--
Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->

#### Link to config_db schema for YANG module changes
<!--
Provide a link to config_db schema for the table for which YANG model
is defined
Link should point to correct section on https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md
-->

#### A picture of a cute animal (not mandatory but encouraged)
2022-06-30 09:34:27 -07:00
..
bash [Bash] Fix bash build break when re-build bash issue. (#9027) 2021-10-22 10:29:12 +08:00
debootstrap Image build time improvements (#10104) 2022-04-19 09:22:16 -07:00
dhcp6relay [dhcp6relay] Fix option parsing and add dhcpv6 client messages (#10819) 2022-05-24 14:37:16 -07:00
dhcpmon [dhcp_relay] Remove dhcp6mon (#10467) 2022-04-12 10:44:17 -07:00
ethtool [arm] support compile sonic arm image on arm server (#7285) 2021-04-18 08:17:57 -07:00
flashrom Flashrom refactoring for broadcom platforms (#7693) 2021-06-22 15:29:21 -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 missing semicolon. (#11197) 2022-06-22 08:57:17 -07:00
ifupdown2 ifupdown2: Don't check for new IP addresses if dhcp-wait is set to no (#8535) 2021-08-20 20:28:35 -07:00
initramfs-tools Update initramfs-tools from 0.133 to 0.140 2021-11-10 15:27:22 -08:00
iproute2 [iproute2]: Fix format error of SSCI (#10767) 2022-05-07 17:14:36 +08:00
iptables Ported iptables patch to 5.10 kernel (#4) 2021-11-10 15:27:22 -08:00
isc-dhcp [docker-dhcprelay]: Update to Bullseye (#9736) 2022-01-18 15:11:36 -08:00
ixgbe Reorganize .gitignore files (#4707) 2020-06-09 21:04:55 -07:00
kdump-tools Update kdump-tools for bullseye 2021-11-10 15:27:22 -08:00
libnl3 [MPLS][libnl3] libnl patches for supporting MPLS 2021-06-16 15:08:23 -07:00
libteam [libteam][warm-reboot] fix issue in teamd warm-reboot that teamd starts (#8227) 2021-08-16 02:54:09 -07:00
libyang Python 2 removal/cleanup 2021-11-10 15:27:22 -08:00
libyang1 [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
libyang2 Frr 8.2 upgrade (#10691) 2022-05-24 14:47:09 -07:00
linkmgrd@e7e00f2aac [sonic-linkmgrd][master] submodule updates #11145 2022-06-15 09:19:43 -07:00
lldpd [LLDPD] fix to port remove and immediately create problem (#9519) 2021-12-15 13:06:40 -08:00
lm-sensors [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
monit Update monit build for Bullseye 2021-11-10 15:27:22 -08:00
mpdecimal [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
ntp Upgrade to ntp 4.2.8p15 for Bullseye 2021-11-10 15:27:22 -08:00
openssh openssh: Upgrade from 7.9 to 8.4, to match version in Bullseye 2021-11-10 15:27:22 -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
ptf-py3@405513bcad Add python3 virtual environment for docker-ptf (#10599) 2022-04-26 09:13:26 +08:00
ptf-py3.patch Add python3 virtual environment for docker-ptf (#10599) 2022-04-26 09:13:26 +08:00
radius [radius]: RADIUS Management User Authentication (#7551) 2021-06-14 07:57:01 -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 [build] Use pip to install setup.py dependency instead of python setup.py install (#8997) 2021-10-26 21:12:45 -07:00
scapy@8b63d73a17 [scapy] update scapy to 2.4.5 and patch it (#10457) 2022-04-07 14:23:35 +03:00
scapy.patch [scapy]: Patch scapy 2.4.5 for sniffing on intfs (#10644) 2022-05-18 13:01:27 -07:00
sflow [sflow + dropmon] added the ENABLE_SFLOW_DROPMON build flag. Added patches for sflow repo. (#10370) 2022-06-20 17:07:02 -07:00
snmpd Update snmpd to 5.9, as part of the Bullseye upgrade 2021-11-10 15:27:22 -08:00
socat Create docker-base-bullseye and docker-config-engine-bullseye (#9666) 2022-01-11 09:23:42 -08:00
sonic-bgpcfgd [BGP]Adding configuration knob to allow advertise Loopback ipv6 /128 prefix (#10958) 2022-06-06 08:51:04 -07:00
sonic-build-hooks [Build]: Support to use the base image version when a package version not specified (#10971) 2022-05-30 12:06:32 +08:00
sonic-config-engine [Interfaces] Add more unit tests for interfaces.j2 (#11277) 2022-06-30 09:34:27 -07:00
sonic-ctrmgrd [containerd]Fixing container commands when mode is local and state is disabled (#9986) 2022-03-02 19:08:06 -08:00
sonic-dbsyncd@df46ed418e [submodule update] sonic-db-syncd (#7225) 2021-04-03 07:36:11 -07:00
sonic-device-data Setting the soc property for num_sa_per_sc on macsec encrypt and decrypt (#11166) 2022-06-27 12:53:57 -07:00
sonic-fips Touch the donwload files to change the modified time (#10929) 2022-05-26 21:55:13 +08:00
sonic-frr Frr 8.2 upgrade (#10691) 2022-05-24 14:47:09 -07:00
sonic-frr-mgmt-framework [frrcfgd][bgpcfgd] Add portchannel support (#8911) 2021-10-12 18:54:37 -07:00
sonic-host-services Add support for Password Hardening (#10323) 2022-06-29 15:34:56 +03:00
sonic-host-services-data Add support for Password Hardening (#10323) 2022-06-29 15:34:56 +03:00
sonic-linux-kernel@b9083b1a27 Update Linux kernel from 5.10.46 to 5.10.103 (#10634) 2022-05-10 13:46:31 -07:00
sonic-mgmt-common@ec32690535 [submodule] Update submodule for sonic-mgmt-common (#10664) 2022-04-25 08:16:29 -07: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-p4rt [submodule] Advance sonic-p4rt/sonic-pins pointer (#10566) 2022-05-06 15:35:20 -07:00
sonic-platform-common@0d45adb62f Update sonic-platform-common submodule (#11237) 2022-06-24 10:30:13 -07:00
sonic-platform-daemons@0d90023b4a [sonic-platform-common][sonic-platform-daemons] submodule update; Remove python2 sonic-platform-common wheel (#10994) 2022-06-04 07:41:15 -07:00
sonic-platform-pde@f18ebc297d [PDE]: introduce the SONiC Platform Development Env (#7510) 2021-07-24 16:24:43 -07:00
sonic-py-common Change pycommon to use swsscommon (#10099) 2022-06-03 14:30:09 +08:00
sonic-py-swsssdk@653bdba517 Revert sonic-db-cli change (#11282) 2022-06-29 20:49:05 +08:00
sonic-restapi@55683f2abb [RESTAPI] Update submodule (#11233) 2022-06-23 22:32:48 -07:00
sonic-sairedis@48cccb45b7 [submodule]: update sonic-sairedis 2022-06-14 15:38:10 -07:00
sonic-snmpagent@1477c36836 [sonic-snmpagent] Update submodule (#10736) 2022-05-05 10:24:00 -07:00
sonic-swss@93af69c5cb advance submodule sonic-swss (#11260) 2022-06-28 07:59:23 +08:00
sonic-swss-common@34c4b059e5 [Submodule] Update src/sonic-swss-common (#11226) 2022-06-24 08:31:21 +08:00
sonic-telemetry@e56e9b44e4 [Submodule]: Update submodule for sonic-telemetry (#10124) 2022-03-11 09:21:35 +08:00
sonic-utilities@f64d280738 [submodule] Advnace sonic-utilities pointer (#11248) 2022-06-27 18:10:28 +03:00
sonic-yang-mgmt [YANG] Fix issue: Non compliant leaf list in config_db schema (#10291) 2022-05-05 10:11:35 -07:00
sonic-yang-models [yang] update TCP_FLAGS format in sonic-acl.yang (#11270) 2022-06-30 10:09:54 +08:00
sonic-ztp@f7dd3c54ec [sonic-ztp] Submodule update (#9589) 2022-01-02 17:56:14 +02:00
swig [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
system-health [system-health] Fix error log system_service'state' while doing confi… (#11225) 2022-06-28 18:48:10 +03:00
systemd-sonic-generator [build]: marvell-armhf bullseye fixes (#9243) 2021-11-13 10:48:58 -08:00
tacacs send log to /var/log/syslog; Add user info the message (#10033) 2022-03-07 15:01:31 -08:00
thrift Fix CVE-2017-1000487 security alert (#7173) 2021-03-31 22:45:06 -07:00
thrift_0_14_1 [CG] Fix CG alert about underscore version. (#10705) 2022-04-29 13:40:33 +08:00
wpasupplicant [submodule]: Update submodule for wpa-supplicant (#11264) 2022-06-28 09:29:59 +08:00