Method: Fog::Vcloud::Compute::Real#generate_outbound_rule

Defined in:
lib/fog/vcloud/requests/compute/configure_org_network.rb

#generate_outbound_ruleObject


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/fog/vcloud/requests/compute/configure_org_network.rb', line 7

def generate_outbound_rule()
  outbound_rule = <<EOF 
    <ns0:FirewallRule>
    <ns0:IsEnabled>true</ns0:IsEnabled>
    <ns0:Description>OUTGOING</ns0:Description>
    <ns0:Policy>allow</ns0:Policy>
    <ns0:Protocols>
        <ns0:Any>true</ns0:Any>
    </ns0:Protocols>
    <ns0:Port>-1</ns0:Port>
    <ns0:DestinationIp>Any</ns0:DestinationIp>
    <ns0:SourcePort>-1</ns0:SourcePort>
    <ns0:SourceIp>Any</ns0:SourceIp>
    <ns0:Direction>out</ns0:Direction>
    <ns0:EnableLogging>false</ns0:EnableLogging>
</ns0:FirewallRule>
EOF
outbound_rule
end