def is_subnet_source_fw(cls, tenant_id, subnet):
cfg = config.CiscoDFAConfig().cfg<EOL>subnet = subnet.split('<STR_LIT:/>')[<NUM_LIT:0>]<EOL>in_sub_dict = cls.get_in_ip_addr(tenant_id)<EOL>if not in_sub_dict:<EOL><INDENT>return False<EOL><DEDENT>if in_sub_dict.get('<STR_LIT>') == subnet:<EOL><INDENT>return True<EOL><DEDENT>out_sub_dict = cls.get_out_ip_addr(tenant_id)<EOL>if not out_sub_dict:<EOL><INDENT>return False<EOL><DEDENT>if out_sub_dict.get('<STR_LIT>') == subnet:<EOL><INDENT>return True<EOL><DEDENT>dummy_sub = cfg.firewall.fw_service_dummy_ip_subnet<EOL>dummy_sub = dummy_sub.split('<STR_LIT:/>')[<NUM_LIT:0>]<EOL>return subnet == dummy_sub<EOL>
Check if the subnet is created as a result of any FW operation.