Default SG rules for the Security Group "Default"
Added in the API os-security-group-default-rules This allows create, delete, list, and get (of individual rules) for rules that will be pre-populated into the Security Group "default" that is populated in all projects on creation. These rules will not be applied retroactively, as it is designed to allow the creation of a "reasonable" base-line set of sg rules. The new rules live in a separate table that mirrors the relevant structures of the security_group_rules table. Added unit tests/API samples for the new API calls Related to bp default-rules-for-default-security-group DocImpact Change-Id: I7ab51e68aff562bb869538197a0eca158fc3220c
This commit is contained in:
committed by
Gerrit Code Review
parent
ac08ce5344
commit
2f7150a063
@@ -384,6 +384,14 @@
|
||||
"namespace": "http://docs.openstack.org/compute/ext/rescue/api/v1.1",
|
||||
"updated": "2011-08-18T00:00:00+00:00"
|
||||
},
|
||||
{
|
||||
"alias": "os-security-group-default-rules",
|
||||
"description": "Default rules for security group support.",
|
||||
"links": [],
|
||||
"name": "SecurityGroupDefaultRules",
|
||||
"namespace": "http://docs.openstack.org/compute/ext/securitygroupdefaultrules/api/v1.1",
|
||||
"updated": "2013-02-05T00:00:00+00:00"
|
||||
},
|
||||
{
|
||||
"alias": "os-security-groups",
|
||||
"description": "Security group support.",
|
||||
|
||||
@@ -162,6 +162,9 @@
|
||||
<extension alias="os-rescue" updated="2011-08-18T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/rescue/api/v1.1" name="Rescue">
|
||||
<description>Instance rescue mode.</description>
|
||||
</extension>
|
||||
<extension alias="os-security-group-default-rules" updated="2013-02-05T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/securitygroupdefaultrules/api/v1.1" name="SecurityGroupDefaultRules">
|
||||
<description>Default rules for security group support.</description>
|
||||
</extension>
|
||||
<extension alias="os-security-groups" updated="2011-07-21T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/securitygroups/api/v1.1" name="SecurityGroups">
|
||||
<description>Security group support.</description>
|
||||
</extension>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"security_group_default_rule": {
|
||||
"ip_protocol": "TCP",
|
||||
"from_port": "80",
|
||||
"to_port": "80",
|
||||
"cidr": "10.10.12.0/24"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<security_group_default_rule>
|
||||
<ip_protocol>TCP</ip_protocol>
|
||||
<from_port>80</from_port>
|
||||
<to_port>80</to_port>
|
||||
<cidr>10.10.12.0/24</cidr>
|
||||
</security_group_default_rule>
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"security_group_default_rule": {
|
||||
"from_port": 80,
|
||||
"id": 1,
|
||||
"ip_protocol": "TCP",
|
||||
"ip_range":{
|
||||
"cidr": "10.10.10.0/24"
|
||||
},
|
||||
"to_port": 80
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<security_group_default_rule xmlns="http://docs.openstack.org/compute/api/v1.1" id="1">
|
||||
<ip_protocol>TCP</ip_protocol>
|
||||
<from_port>80</from_port>
|
||||
<to_port>80</to_port>
|
||||
<ip_range>
|
||||
<cidr>10.10.10.0/24</cidr>
|
||||
</ip_range>
|
||||
</security_group_default_rule>
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"security_group_default_rules": [
|
||||
{
|
||||
"from_port": 80,
|
||||
"id": 1,
|
||||
"ip_protocol": "TCP",
|
||||
"ip_range": {
|
||||
"cidr": "10.10.10.0/24"
|
||||
},
|
||||
"to_port": 80
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<security_group_default_rules xmlns="http://docs.openstack.org/compute/api/v1.1">
|
||||
<security_group_default_rule id="1">
|
||||
<ip_protocol>TCP</ip_protocol>
|
||||
<from_port>80</from_port>
|
||||
<to_port>80</to_port>
|
||||
<ip_range>
|
||||
<cidr>10.10.10.0/24</cidr>
|
||||
</ip_range>
|
||||
</security_group_default_rule>
|
||||
</security_group_default_rules>
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"security_group_default_rule": {
|
||||
"id": 1,
|
||||
"from_port": 80,
|
||||
"to_port": 80,
|
||||
"ip_protocol": "TCP",
|
||||
"ip_range": {
|
||||
"cidr": "10.10.10.0/24"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<security_group_default_rule xmlns="http://docs.openstack.org/compute/api/v1.1" id="1">
|
||||
<from_port>80</from_port>
|
||||
<to_port>80</to_port>
|
||||
<ip_protocol>TCP</ip_protocol>
|
||||
<ip_range>
|
||||
<cidr>10.10.10.0/24</cidr>
|
||||
</ip_range>
|
||||
</security_group_default_rule>
|
||||
Reference in New Issue
Block a user