Last active
April 28, 2016 09:16
-
-
Save flashvoid/43c9843b784c788c01851b41018a0958 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Description": "hello there, security policies are fun!", | |
| "Rules": [ | |
| { | |
| "IsStateful": true, | |
| "Ports": [ | |
| 80, | |
| 443 | |
| ], | |
| "Protocol": "TCP" | |
| } | |
| ], | |
| "Peers": [ | |
| { | |
| "SegmentNetworkId": 2 | |
| } | |
| ], | |
| "Direction": "Ingress", | |
| "AppliedTo": [ | |
| { | |
| "SegmentNetworkId": 1, | |
| "TenantNetworkId": 1 | |
| } | |
| ], | |
| "NetworkConfig" : { | |
| "RomanaNet" : "10.0.0.0/8", | |
| "HostBits": 8, | |
| "TenentBits" : 4, | |
| "SegmentBits" : 4, | |
| "EndpointSpaceBits" : 0, | |
| "EndpointBits" : 8 | |
| }, | |
| "Name": "pol" | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problems
is_statefulmakes no sense right now since stateful is default.applied_toallows multiple tenants but tenant id is a part of policy name so loop over applied_to implicitly produces multiple policies.