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