Cisco Cisco Configuration Engine 3.0 Guida Dello Sviluppatore
4-8
Cisco Configuration Engine Software Development Kit API Reference and Programmer Guide
OL-17661-01
Chapter 4 Namespace Mapping Service
Object Model
Starting from Cisco Configuration Engine, the new class cnsGroup is defined as the Group class of the
object model. It is derived from the OrganizationalUnit class. It inherits the nesting capability of
OrganizationalUnit and allows hierarchical groups to be defined. The class cnsGroup contains a
cnsMember attribute, which is a multi-value string attribute that holds the DNs of the associated device
members.
object model. It is derived from the OrganizationalUnit class. It inherits the nesting capability of
OrganizationalUnit and allows hierarchical groups to be defined. The class cnsGroup contains a
cnsMember attribute, which is a multi-value string attribute that holds the DNs of the associated device
members.
Application Namespace
The object data model also mentions the association between GroupItem and the application namespace
object.
object.
The application namespace class is an OrganizationalUnit. An association relation between the
namespace and group was implemented in the past, using two reference attributes.
namespace and group was implemented in the past, using two reference attributes.
Starting from Cisco Configuration Engine, a containment relation is used. Since Namespace is defined
using OrganizationalUnit, it can contain other type of OrganizationalUnit such as group. All of the
groups that are associated with a namespace are now created inside the namespace container.
using OrganizationalUnit, it can contain other type of OrganizationalUnit such as group. All of the
groups that are associated with a namespace are now created inside the namespace container.
Event Object
The cnsesEvent class represents the Event class in the object model. To achieve the behavior described
by the object data model, following attributes were added to the schema:
by the object data model, following attributes were added to the schema:
•
cn — original subject
•
cnsessubscribermap — contains the subject(s) the original subject should be mapped to for a
subscriber.
subscriber.
•
cnsespublishermap — contains the subject(s) the original subject should be mapped to for a
publisher.
publisher.
•
cnsessubscriberdef — for a subscriber, determines whether Namespace Mapper should further
specialize the contents of cnsessubscribermap.
specialize the contents of cnsessubscribermap.
–
Algorithmic mode — Valid values are 1 and 0 with 1 signifying algorithmic mode.
•
cnsespublisherdef — for a publisher, determines whether Namespace Mapper should further
specialize the contents of cnsespublishermap.
specialize the contents of cnsespublishermap.
–
Algorithmic mode — Valid values are 1 and 0 with 1 signifying algorithmic mode.
The Event objects are contained within the namespace organizational units, since events are specific to
Namespaces.
Namespaces.
Table 4-1
Schema extension to the Namespace Mapper
Class
Attributes
Attribute Type
Multi-valued
Description
Device* represents
Device Class
Device Class
Id*
Directory String
No
Uniquely identifies device object.
Groups*
dn
Yes
Refers to the group objects to which that
device belongs.
device belongs.
OrganizationalUnit
represents
Application
Namespace
represents
Application
Namespace
ou
Directory String
No
Name of the application namespace.