Table of Contents

Module: Rule daxfi/Rule.py

Rule class (daxfi package).

The representation of a firewall's rule.

Copyright 2001, 2002 Davide Alberani <alberanid@libero.it>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Imported modules   
from daxfi.RuleBuilder import RuleData
from daxfi._rulesutils import *
import imp
import os
Functions   
_get_C_module_name
import_C_module
rule_to_bare_xml
rule_to_xml
  _get_C_module_name 
_get_C_module_name ( n )

Return the expected name of the C module for the given firewall.

  import_C_module 
import_C_module ( modname )

Import a C module; if the module doesn't exists, a fake module is returned.

  rule_to_bare_xml 
rule_to_bare_xml ( rd )

Return the XML representation of a RuleData object.

  rule_to_xml 
rule_to_xml (
        rd,
        action,
        ruleNumber,
        )

Given a RuleData object, an action and a ruleNumber, return a XML string.

Classes   
RuleBase

Class that define a firewall rule.


Table of Contents

This document was automatically generated on Tue Dec 17 17:48:18 2002 by HappyDoc version r1_5