netbox-config-diff icon indicating copy to clipboard operation
netbox-config-diff copied to clipboard

Create some statistics about the diff.

Open chris240189 opened this issue 1 year ago • 1 comments

I am working towards getting a couple of switches fully automated and to get a feel of how "big" a diff is, it would be useful to not only having a status attribute, but also something like "102 insertions(+), 22 deletions(-)" exposed to be used as sortable columns in the config compliance overview or just the lines of code of the "patch" output.

chris240189 avatar Jul 15 '24 08:07 chris240189

Hi @chris240189 thanks for your suggestion, I should think about how to implement this, but I'm unlikely to be able to do any sorting because my knowledge of JavaScript is very small

miaow2 avatar Jul 28 '24 14:07 miaow2

we are going to right direction with the latest update, however, when I go to /plugins/config-diff/config-compliances/ I cannot add the diff-statistics as columns in the table.

image

chris240189 avatar Nov 11 '24 10:11 chris240189

I added statistics only to ConfigCompliance page

image

Where do you want to see it as well?

miaow2 avatar Nov 11 '24 11:11 miaow2

When you go to /plugins/config-diff/config-compliances/ There is a big table view showing all the compliances in a table. That table is customizable and I'd like to add the statistics as a column in that table (see my screenshot above, where the column is not selectable).

chris240189 avatar Nov 11 '24 15:11 chris240189