Hi Andrew,
There is a way in Prime to accomplish this. The first rule will be to set up the parse blocks, and then the rules following will be to check for QOS.
S.No1:
Condition Scope Detail:
Configuration
Block Options:
Parse as Block
Block Start Expression: ^interface (?i)(F.*|G.*|T.*) <-- This will start the block on Fast Ethernet, Gig, or Ten Gig interfaces
Condition Match Criteria:
Operator Matches the expression
Value: interface (?i)(F.*|G.*|T.*) <-- Captures the interface
Action Detail
Does Not Match: Does not raise a violation
S.No2:
Condition Scope Detail:
Previously Matched Blocks
Block Options: NONE
Condition Match Criteria:
Operator: Contains the String
Value: Insert single QOS line that needs to be on every interface.
Action Detail:
Does Not Match:
Raise a Violation and Continue
User Defined
Message QOS is incorrect on interface <1.1>
CLI Fix:
interface <1.1>
QOS command
And that should do it. Please note that this will only be beneficial if each interface is supposed to have the same QOS configured. If each interface is going to have different commands, then the policy will be longer depending on what you need to check for.
Hope this helps,
Brett