You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							16 lines
						
					
					
						
							453 B
						
					
					
				
			
		
		
	
	
							16 lines
						
					
					
						
							453 B
						
					
					
				package pfw
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
 | 
						|
	"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/compute"
 | 
						|
)
 | 
						|
 | 
						|
func flattenPFW(d *schema.ResourceData, pfw *compute.ItemPFW) {
 | 
						|
	d.Set("compute_id", pfw.VMID)
 | 
						|
	d.Set("public_port_start", pfw.PublicPortStart)
 | 
						|
	d.Set("public_port_end", pfw.PublicPortEnd)
 | 
						|
	d.Set("local_ip", pfw.LocalIP)
 | 
						|
	d.Set("local_base_port", pfw.LocalPort)
 | 
						|
	d.Set("proto", pfw.Protocol)
 | 
						|
}
 |