Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle hits within agg in tabify #281

Closed
ronakmshah opened this issue Dec 1, 2016 · 5 comments
Closed

Handle hits within agg in tabify #281

ronakmshah opened this issue Dec 1, 2016 · 5 comments
Assignees

Comments

@ronakmshah
Copy link
Contributor

#277

@ronakmshah
Copy link
Contributor Author

@curran any updates on this?

@curran
Copy link
Contributor

curran commented Dec 5, 2016

@ronakmshah No updates. Moving has been hectic, hoping to get back on track tomorrow. Is this a high priority item? Let's try to keep this prioritization issue #155 up to date, I'll prioritize my work from the listing there.

@ronakmshah
Copy link
Contributor Author

@curran we are running short on time on this. Please let me know as soon as you have something on this as I have to finish some more things on top of it on my current VSS-ACL #267.

Thanks

@curran
Copy link
Contributor

curran commented Dec 8, 2016

@ronakmshah I got it to the point of having the data we need in the tabify output, but the format is a bit more nested than is ideal. I think this should work, though. Here's an example of the output:

      [
        {
          "top-acls": "55cd911d-aa9b-4647-b4dc-68a63122aa7c",
          "doc_count": 10080,
          "top-acl-hits": {
            "hits": [
              {
                "destinationport": 3,
                "sourceport": 5,
                "protocol": "TCP",
                "nuage_metadata": {
                  "dpgName": "PG15",
                  "spgName": "PG9"
                }
              }
            ]
          }
        },
        {
          "top-acls": "ba6ee261-3aa1-439f-be90-102136300472",
          "doc_count": 7200,
          "top-acl-hits": {
            "hits": [
              {
                "destinationport": 1,
                "sourceport": 4,
                "protocol": "UDP",
                "nuage_metadata": {
                  "dpgName": "PG15",
                  "spgName": "PG18"
                }
              }
            ]
          }
        },
        {
          "top-acls": "fd4ba772-608c-4ea2-84cc-701214385856",
          "doc_count": 7200,
          "top-acl-hits": {
            "hits": [
              {
                "destinationport": 3,
                "sourceport": 3,
                "protocol": "TCP",
                "nuage_metadata": {
                  "dpgName": "PG8",
                  "spgName": "PG9"
                }
              }
            ]
          }
        },
        ...

@curran
Copy link
Contributor

curran commented Dec 8, 2016

@ronakmshah Got it - here's the final structure:

[
        {
          "top-acls": "55cd911d-aa9b-4647-b4dc-68a63122aa7c",
          "doc_count": 10080,
          "top-acl-hits": {
            "destinationport": 3,
            "sourceport": 5,
            "protocol": "TCP",
            "nuage_metadata": {
              "dpgName": "PG15",
              "spgName": "PG9"
            }
          }
        },
        {
          "top-acls": "ba6ee261-3aa1-439f-be90-102136300472",
          "doc_count": 7200,
          "top-acl-hits": {
            "destinationport": 1,
            "sourceport": 4,
            "protocol": "UDP",
            "nuage_metadata": {
              "dpgName": "PG15",
              "spgName": "PG18"
            }
          }
        },
        {
          "top-acls": "fd4ba772-608c-4ea2-84cc-701214385856",
          "doc_count": 7200,
          "top-acl-hits": {
            "destinationport": 3,
            "sourceport": 3,
            "protocol": "TCP",
            "nuage_metadata": {
              "dpgName": "PG8",
              "spgName": "PG9"
            }
          }
        }
      ]

@t00f t00f closed this as completed in #303 Dec 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants