7. fwObj

class fwOper.fwObj.Common[source]

Bases: object

Commons properties/methods for Singular/Plural objects

keys()[source]
values()[source]
class fwOper.fwObj.Plurals[source]

Bases: fwOper.fwObj.Common

collection of objects

Parameters

Common (Common) – Inherits Commons properties/methods for Singular/Plural objects

changes(what, change)[source]

collate the recorded delta changes and provide delta for that change ( “ADDS”, “REMOVALS” )

Parameters
  • what (str) – where to look for the change (‘acl’, ‘object-group’)

  • change (str) – type of change for which change output requested ( “ADDS”, “REMOVALS” )

Raises

Exception – INCORRECTCHANGE

Returns

delta changes

Return type

str

abstract classmethod set_objects()[source]
class fwOper.fwObj.Singulars(name='')[source]

Bases: fwOper.fwObj.Common

a single object

Parameters

Common (Common) – Inherits Commons properties/methods for Singular/Plural objects

abstract classmethod parse()[source]
fwOper.fwObj.get_object(obj, file=None, conf_list=None, **kwargs)[source]

Pre-defined set of steps to get objects. ( either input require file/conf_list ; preferred conf_list )

Parameters
  • obj (OBJS, ACLS, ROUTES,INSTANCES) – various objects type

  • file (str, optional) – file name with path. Defaults to None.

  • conf_list (list, optional) – configuration content in list format. Defaults to None.

Raises

Exception – MissingMandatoryInput

Returns

object

Return type

object