HP-UX SNAplus2 R7 NOF Programmer's Guide

Writing NOF Applications
NOF Restrictions Based on Node Conguration
2.5 Ordering and Dependencies between NOF Verbs
The main restriction on the order of NOF verbs is that the rst reference to a particular resource must be in a
DEFINE_* verb for that resource. This leads to the following dependencies:
When creating a new node conguration le, the rst verb issued must be DEFINE_NODE.
A DLC must be dened before any port that refers to it.
A port must be dened before any LS or CN that refers to it.
A COS must be dened before any mode that refers to it.
A PU name must be dened (as part of an LS denition) before a dependent LU that refers to this PU.
An LU must be dened before an LU pool that includes it.
A downstream PU name (as part of an LS denition) and a host LU must be dened before a downstream LU
that refers to them.
A resource must be dened before a START_* verb refers to it, and must be started before a STOP_* verb
refers to it.
In addition, when modifying a running node, using a DEFINE_* verb a second time (to modify the previous
denition) is not always valid. For some of these verbs, a second denition is never valid (the resource must be
deleted and then dened again); for others, a second denition is valid only if the resource is currently inactive.
The descriptions of individual DEFINE_* verbs in Chapter 3,
NOF API Verbs provide information about whether
a second denition is valid. When modifying the domain conguration le, a second DEFINE_* verb can always
be used to modify a previous denition.
When creating a new node conguration le, the rst verb issued must be DEFINE_NODE. This must be followed
by DEFINE_* and SET_* verbs for all the resources associated with the node.
In the domain conguration le, there is no restriction on the ordering of domain resource records.
2.6 NOF Restrictions Based on Node Conguration
The DEFINE_NODE verb includes parameters that dene the range of functions supported by a node. Several NOF
verbs relate to optional functions that a node can or can not support; these verbs are valid only when issued to a
node that supports the relevant functions.
This section summarizes the optional functions that affect which NOF verbs can be used. For more information
about these functions, see Section 3.37, DEFINE_NODE.
2.6.1 APPN End Node and LEN Node Restrictions
The SNAplus2 local node can be an APPN network node, an APPN branch network node, an APPN end node, or
a LEN node.
The following NOF verbs are only valid at a network node, branch network node, or end node; the primary return
code
AP_FUNCTION_NOT_SUPPORTED is returned if you attempt to issue them at a LEN node.
DEFINE_CN
DELETE_CN
QUERY_CN
QUERY_CN_PORT
76