Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Check Policy Compliance task result should show the non-compliant configuration line(s)

Check Policy Compliance task result should show the non-compliant configuration line(s)

0 Votes

When we choose "Lines in exact order" option on policy rule definition, check policy compliance task results does not show the non-compliance line/lines, shows all checked lines in the rule.
For this reason, we can not detect the incorrect lines on the device.

NA can show the compliance lines as yellow coloured in the result, so I think it should show incorrect lines as coloured or maybe with line numbers.

By design the results from Check Policy Compliance task shows the all text which should match from device configuration and does _not_ highlight exact lines which are missing or not in exact order like in the rule.
 

EXPECTED BEHAVIOR:

NA can show the compliance lines as yellow coloured in the result, so I think it should show incorrect lines as coloured or maybe with line numbers.

 

We should be smarter to report the issue.  3 scenarios of failure probably:
 
  1. all the lines were found, but not in the right order.
  2. some or no lines were found, and we should report the missing lines, and possibly also if lines are not in the correct order
  3. some additional lines were found inserted into the block of lines in exact order, and should not be there, and possibly lines are not in the correct order either.
  4. variations of above.
 
Today if any of the above are found, we just simply say the lines weren't found in the exact order specified, but don't give any further details of what was wrong.
5 Comments
Micro Focus Expert
Micro Focus Expert
Status changed to: Waiting for Votes
 
Micro Focus Expert
Micro Focus Expert
Status changed to: Accepted
 
Micro Focus Expert
Micro Focus Expert
This idea is delivered as part of the NA 2018.11 release - for more details, look at the documentation below: https://docs.microfocus.com/itom/Network_Automation:2018.11/Home
Micro Focus Expert
Micro Focus Expert
Status changed to: Declined
 
Micro Focus Expert
Micro Focus Expert
Status changed to: Accepted
 
About the Author
Senior Solutions Consultant in Micro Focus Customer Assist organization - with overall 12 plus years of experience working in HP(E) / Microfocus R&D organization. For past several years, I have been working as a customer facing R&D engineer with product expertise in Network Management area and have recently started working on Operations Bridge products. Primary activities involve assistance to field teams (Sales, Customer Success, Support, Professional Services): Technical assistance in product demos and POCs, Deployment consultancy, Product audit and best practice guidance, Assistance in Escalations and working with Product Management and R&D architects on translating customer feedback into relevant and appropriate product requirement (CR, ER, New Feature etc).
Most "Liked" Contributors
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.