From 031b22241cfc5600b1092da52a0c0c3d26f6e46c Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Fri, 20 Sep 2024 02:49:09 -0700 Subject: [PATCH] Add repository for CentOS 9 AppStream Differential Revision: D63031295 fbshipit-source-id: 954cc8192a832ef4adef28b214b34965a5e06777 --- itchef/cookbooks/fb_helpers/README.md | 3 +++ itchef/cookbooks/fb_helpers/libraries/node_methods.rb | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/itchef/cookbooks/fb_helpers/README.md b/itchef/cookbooks/fb_helpers/README.md index c2a1f078..7bfd79d9 100644 --- a/itchef/cookbooks/fb_helpers/README.md +++ b/itchef/cookbooks/fb_helpers/README.md @@ -246,6 +246,9 @@ your node. * `node.aristaeos_4_30_or_newer?` Is network switch running Arista EOS and OS version is 4.30 or newer +* `node.aristaeos_4_32_or_newer?` + Is network switch running Arista EOS and OS version is 4.32 or newer + * `node.embedded?` Is embedded Linux, implies 'node.aristaeos?'. These devices likely have minimal packages installed, little space, and/or some non-persistent diff --git a/itchef/cookbooks/fb_helpers/libraries/node_methods.rb b/itchef/cookbooks/fb_helpers/libraries/node_methods.rb index 9e3b2c9d..620f78af 100644 --- a/itchef/cookbooks/fb_helpers/libraries/node_methods.rb +++ b/itchef/cookbooks/fb_helpers/libraries/node_methods.rb @@ -540,6 +540,10 @@ def aristaeos_4_30_or_newer? self.aristaeos? && self._self_version >= self._canonical_version('4.30') end + def aristaeos_4_32_or_newer? + self.aristaeos? && self._self_version >= self._canonical_version('4.32') + end + def embedded? self.aristaeos? end