wallix / awless

A Mighty CLI for AWS
http://awless.io/
Apache License 2.0
4.98k stars 263 forks source link

list securitygroups --format json mangles netmask #215

Open bschaefer99 opened 6 years ago

bschaefer99 commented 6 years ago

Not sure what's going on here, unless this is a new mask notation i haven't seen. Where i'm expecting 255.255.255.0, or /24, i'm seeing a string of characters.

   {
    "PortRange": {
     "FromPort": 9000,
     "ToPort": 9003,
     "Any": false
    },
    "Protocol": "tcp",
    "IPRanges": [
     {
      "IP": "10.0.0.0",
      "Mask": "//8AAA=="
     }
    ],
    "Sources": null
   }

Based on my configuration, that mask should be /16, or 255.255.0.0. Table output gets this right:

[10.0.0.0/16](tcp:9000-9003)