sonic-buildimage/src
Mohamed Ghoneim 02d273274f
[yang-models] Validating 'services' exist if ACL type is 'CTRLPLANE' (#9295)
#### Why I did it
Fixing issue #9294

#### How I did it
Updating ACL yang model

#### How to verify it

Validating issue with `config patch-apply` is fixed.

- Start a KVM
- Add file `add-ctrl-plane-tbl.json-patch ` with content:
```json
[
    {
     "op": "add",
     "path": "/ACL_TABLE/ACTRLPLANETABLE",
     "value": {
      "policy_desc": "ACTRLPLANETABLE",
      "services": [
       "SSH"
      ],
      "stage": "ingress",
      "type": "CTRLPLANE"
     }
    }
]
```
- Run `sudo config apply-patch add-ctrl-plane-tbl.json-patch`


Before:
```
Patch Applier: The patch was sorted into 4 changes:
Patch Applier:   * [{"op": "add", "path": "/ACL_TABLE/ACTRLPLANETABLE", "value": {"type": "CTRLPLANE"}}]
Patch Applier:   * [{"op": "add", "path": "/ACL_TABLE/ACTRLPLANETABLE/policy_desc", "value": "ACTRLPLANETABLE"}]
Patch Applier:   * [{"op": "add", "path": "/ACL_TABLE/ACTRLPLANETABLE/services", "value": ["SSH"]}]
Patch Applier:   * [{"op": "add", "path": "/ACL_TABLE/ACTRLPLANETABLE/stage", "value": "ingress"}]
```

After:
```
Patch Applier: The patch was sorted into 1 change:
Patch Applier:   * [{"op": "add", "path": "/ACL_TABLE/ACTRLPLANETABLE", "value": {"policy_desc": "ACTRLPLANETABLE", "services": ["SSH"], "stage": "ingress", "type": "CTRLPLANE"}}]
```

#### 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

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


#### A picture of a cute animal (not mandatory but encouraged)
2021-12-10 08:04:41 -08:00
..
bash [Bash] Fix bash build break when re-build bash issue. (#9027) 2021-10-22 10:29:12 +08:00
dhcp6relay [dhcp_relay] Update DHCPv6 counter on relayed messages (#9283) 2021-11-30 20:15:30 -08:00
dhcpmon Fix dhcpmon bugs (#9008) 2021-10-19 16:15:21 -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 MCLAG enhacements ICCPd initial code commit (#4819) 2021-08-03 17:32:50 -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]: Add macsec-xpn-support iproute2 in syncd (#8702) 2021-11-25 21:38:17 +08:00
iptables Ported iptables patch to 5.10 kernel (#4) 2021-11-10 15:27:22 -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 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
linkmgrd@6c6151ba95 [sonic-linkmgrd][master] submodule update (#9420) 2021-12-08 08:54:00 -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 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
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
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 Update snmpd to 5.9, as part of the Bullseye upgrade 2021-11-10 15:27:22 -08:00
socat [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
sonic-bgpcfgd Updated BGP Template for Chassis/Multi-asic (#9291) 2021-12-06 09:36:24 -08:00
sonic-build-hooks [Bug][Build]: fix the file not found issue caused by the relative pat… (#9443) 2021-12-03 21:23:09 -08:00
sonic-config-engine [Unit test] Fix sonic config engine unit test failure (#9454) 2021-12-09 17:39:28 +02:00
sonic-ctrmgrd [k8s]: disable http_proxy for docker by default (#8328) 2021-08-04 00:30:43 -07:00
sonic-dbsyncd@df46ed418e [submodule update] sonic-db-syncd (#7225) 2021-04-03 07:36:11 -07:00
sonic-device-data [ragile] support 32c and 4s platform (#8824) 2021-11-17 23:49:06 -08:00
sonic-frr sonic-frr: Add patch to skip installing png files 2021-11-10 15:27:22 -08:00
sonic-frr-mgmt-framework [frrcfgd][bgpcfgd] Add portchannel support (#8911) 2021-10-12 18:54:37 -07:00
sonic-host-services [TACACS+] Add audisp-tacplus for per-command accounting. (#8750) 2021-12-01 11:50:09 +08:00
sonic-host-services-data Revert "sysready (#8889)" 2021-11-10 15:36:20 -08:00
sonic-linux-kernel@6aa8d00afd [submodule]: update sonic-linux-kernel (#9254) 2021-11-14 12:01:39 -08: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-p4rt [PINS] Build P4RT container for PINS (#9083) 2021-12-07 11:11:25 -08:00
sonic-platform-common@77da9c8440 [Submodule]Update sonic-platform-common submodule (#9466) 2021-12-09 12:38:21 +05:30
sonic-platform-daemons@59bc31557c submodule platform daemon update (#9461) 2021-12-09 12:41:17 +05:30
sonic-platform-pde@f18ebc297d [PDE]: introduce the SONiC Platform Development Env (#7510) 2021-07-24 16:24:43 -07:00
sonic-py-common [sonic-py-common][device info] Check for None before accessing the ASIC type (#9290) 2021-11-30 11:12:48 -08:00
sonic-py-swsssdk@2cd6236849 [sonic-py-swsssdk]: submodule update (#8757) 2021-09-15 14:00:43 -07:00
sonic-restapi@e842c5ff31 [RESTAPI] Update Submodule (#8931) 2021-10-09 15:41:22 -07:00
sonic-sairedis@69517ba086 [submodule] Update submodule for sonic-sairedis (#9354) 2021-11-24 15:17:47 -08:00
sonic-snmpagent@a07da53618 [submodule] Update snmpagent (#9102) 2021-11-08 09:55:24 -08:00
sonic-swss@bb0733aa67 [sonic-swss] Advance submodule (#9288) 2021-11-24 11:00:42 +02:00
sonic-swss-common@405f1df3d4 [sonic-swss-common]: Submodule update (#9395) 2021-12-01 10:14:13 -08:00
sonic-telemetry@0443e66050 [submodule]: update telemetry submodule (#8282) 2021-07-29 16:53:41 -07:00
sonic-utilities@a0bff26a00 update sonic-utilities submodule (#9360) 2021-11-24 11:11:31 -08:00
sonic-yang-mgmt [YANG] add YANG model support for CABLE_LENGTH (#9273) 2021-12-09 09:34:01 -08:00
sonic-yang-models [yang-models] Validating 'services' exist if ACL type is 'CTRLPLANE' (#9295) 2021-12-10 08:04:41 -08:00
sonic-ztp@4475750df0 [sonic-ztp] submodule update (#7984) 2021-06-27 09:56:27 +03:00
swig [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
system-health [system-health] No longer check critical process/service status via monit (#9068) 2021-11-23 15:47:48 -08:00
systemd-sonic-generator [build]: marvell-armhf bullseye fixes (#9243) 2021-11-13 10:48:58 -08:00
tacacs [TACACS+] Add audisp-tacplus for per-command accounting. (#8750) 2021-12-01 11:50:09 +08:00
thrift Fix CVE-2017-1000487 security alert (#7173) 2021-03-31 22:45:06 -07:00
thrift_0_13_0 Add thrift 0.13.0 (#8307) 2021-09-01 06:10:14 -07:00
wpasupplicant Update wpa supplicant (#8998) 2021-10-25 10:14:29 +08:00