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
		
			
				
	
	
		
			11 lines
		
	
	
		
			379 B
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			379 B
		
	
	
	
		
			XML
		
	
	
	
	
	
<?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> |