I have a Baseline template that works well with 95% of our switches. Basically, it checks for lots of global commands, and has two seperate parent/child relationships for access ports and trunk ports.
The parent of each is a prerequisite for the child. The parent/prereequisite sets the submode and checks to see if its configured as access or trunk (switchport mode access/switchport mode trunk) since they are mutually exclusive.
The children then will be checked only if their parent passes and will ensure all the normal trunk/access STIG commands are applied.
This works everywhere except the few devices with no ports configured as trunks. If a switch has no trunk ports, the template is flagged as not containing all the prerequisites and the entire template check is skipped(including the global checks).
Is there any logic I can apply to circumvent this? Or do I have to peel the trunk port checks into a separate template?
I am running LMS3.1