??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
σ
ίUdac @` s? d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z y$ d d
l m
Z
d d l m Z Wn e k
r n Xd d l
m Z d d
l m Z m Z m Z d d d d d g Z d d d d d d d d d g Z d Z d Z d Z d Z d Z d! Z d" Z e d# k r;e n d$ S(% i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bysΡ
---
module: vca_fw
short_description: add remove firewall rules in a gateway in a vca
description:
- Adds or removes firewall rules from a gateway in a vca environment
version_added: "2.0"
author:
- Peter Sprygada (@privateip)
options:
fw_rules:
description:
- A list of firewall rules to be added to the gateway, Please see examples on valid entries
required: True
default: false
extends_documentation_fragment: vca.documentation
sZ
#Add a set of firewall rules
- hosts: localhost
connection: local
tasks:
- vca_fw:
instance_id: 'b15ff1e5-1024-4f55-889f-ea0209726282'
vdc_name: 'benz_ansible'
state: 'absent'
fw_rules:
- description: "ben testing"
source_ip: "Any"
dest_ip: 192.0.2.23
- description: "ben testing 2"
source_ip: 192.0.2.50
source_port: "Any"
dest_port: "22"
dest_ip: 192.0.2.101
is_enable: "true"
enable_logging: "false"
protocol: "Tcp"
policy: "allow"
( t FirewallRuleType( t
ProtocolsType( t
AnsibleModule( t VcaErrort vca_argument_spect vca_logint Tcpt Udpt Icmpt Othert Anyt policyt is_enablet enable_loggingt descriptiont dest_ipt dest_portt source_ipt source_portt protocolc C` s1 | j | j | j | j | j f S( N( t get_Tcpt get_Udpt get_Icmpt get_Othert get_Any( R ( ( sG /usr/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vca_fw.pyt protocol_to_tupleM s
c C` st t | } | d t k r d S| d t k r4 d S| d t k rH d S| d t k r\ d S| d t k rp d
Sd S( Ni R i R i R i R i R ( R! t True( R ( ( sG /usr/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vca_fw.pyt protocol_to_stringU s c C` sE y! t } t | | t | SWn t k
r@ t d n Xd S( Ns" The value in protocol is not valid( R t setattrR" t AttributeErrorR ( R t protocols( ( sG /usr/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vca_fw.pyt protocol_to_typec s
c C` sG x@| D]8} x9 | j D]+ } | t k r t d | d t q q Wt | j d d j | d <| j d d j | d