generic FortiOS model to support new fortigate version and VM based products #2373
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pre-Request Checklist
rubocop --auto-correct
)Description
Closes issue #2227 by extending regex for clustered enviroment.
Introduces trial-and-error style for the new Fortigate VM based environments: FortiManager, FortiAnalyzer, FortiMail. The first succeeding command output will be appended to cfg.
Due to a bunch of new output variations in "get system status" the regex lines have multiple additions to keep the cfg stable. Similar regex improvements proposed in #2180 are also included in this PR.
Includes the same removal of "AV AI/ML Model" from "get system status" command as in pull request #2328
PS. FortiMail is the only FortiGate product which SSH daemon requires keyboard-interactive auth method in Oxidized config, all the other fortios devices are happy with auth_method "password".