@classmethod<EOL><INDENT>def is_network_source_fw(cls, nwk, nwk_name):<DEDENT>
if nwk is not None:<EOL><INDENT>if nwk.source == fw_const.FW_CONST:<EOL><INDENT>return True<EOL><DEDENT>return False<EOL><DEDENT>if nwk_name in fw_const.DUMMY_SERVICE_NWK and (<EOL>len(nwk_name) == len(fw_const.DUMMY_SERVICE_NWK) +<EOL>fw_const.SERVICE_NAME_EXTRA_LEN):<EOL><INDENT>return True<EOL><DEDENT>if nwk_name in fw_const.IN_SERVICE_NWK and (<EOL>len(nwk_name) == len(fw_const.IN_SERVICE_NWK) +<EOL>fw_const.SERVICE_NAME_EXTRA_LEN):<EOL><INDENT>return True<EOL><DEDENT>if nwk_name in fw_const.OUT_SERVICE_NWK and (<EOL>len(nwk_name) == len(fw_const.OUT_SERVICE_NWK) +<EOL>fw_const.SERVICE_NAME_EXTRA_LEN):<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Check if SOURCE is FIREWALL, if yes return TRUE.

        If source is None or entry not in NWK DB, check from Name.
        Name should have constant AND length should match.