mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	Per contrail implementation, CS ingress policy mapping: rule cidr should be mapped to src net, dst net is 'local' i.e same as 'guest network' on which rule is applied
Signed-off-by: Sheng Yang <sheng.yang@citrix.com>
This commit is contained in:
		
							parent
							
								
									22eb5eb2d6
								
							
						
					
					
						commit
						c56df036e8
					
				@ -152,11 +152,11 @@ public class NetworkPolicyModel extends ModelObjectBase {
 | 
			
		||||
                for (String cidr: cidrList) {
 | 
			
		||||
                    NetworkVO net = cidrToNetwork(controller, cidr);
 | 
			
		||||
                    String netName = projectName + ":" + controller.getManager().getCanonicalName(net);
 | 
			
		||||
                    dstList.add(new PolicyRuleType.AddressType(null, netName, null));
 | 
			
		||||
                    srcList.add(new PolicyRuleType.AddressType(null, netName, null));
 | 
			
		||||
                }
 | 
			
		||||
                dstPorts.add(new PolicyRuleType.PortType(portStart, portEnd));
 | 
			
		||||
 | 
			
		||||
                srcList.add(new PolicyRuleType.AddressType(null, "any", null));
 | 
			
		||||
                dstList.add(new PolicyRuleType.AddressType(null, "local", null));
 | 
			
		||||
                srcPorts.add(new PolicyRuleType.PortType(0, 65535));
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user