Cisco Cisco Configuration Engine 3.5 Entwickleranleitung

Seite von 344
4-6
Cisco Configuration Engine Software Development Kit API Reference and Programmer Guide 3.5
OL-17661-02
Chapter 4      Namespace Mapping Service
Object Model
Figure 4-3
NSM Object Model
GroupItem
GroupItem is the base class for Group and Device, with an attribute called key, which is inherited by the 
Group and Device class.
Device
A device object represents a device in the network. Every device has a unique identifier. The key 
attribute of the GroupItem class represents this identifier. A device object should also have an attribute 
called groups, which points to all the groups containing the device.
Group
A group object represents a group of devices or other groups. The members attribute refers to the 
members of the group. The key attribute of the group object uniquely identifies the group. The 
applications attribute specifies the application namespaces with which the group is associated. 
For example, all the devices located in California could be grouped into a group identified as california
A VPN application using the config application namespace could use the california group. Thus, the 
california group must have an association with the application namespace called config.
Application Namespace
An application object represents an application namespace. An application namespace is composed of 
one or more events specified in the events attribute. An application is associated with one or more 
groups, and the groups attribute gives the list of group associations.
GroupItem
Key: string
Device
groups: Group[]
Group
members: GroupItem[]
applications: Application[]
ApplicationNamespace
events: Event[]
name: string
groups: GroupItem[]
Event
orig_subject: string
sub_mapping: string[]
pub_mapping: string[]
sub_default: int
pub_default: int
75498