Special names

Some Service-type commands, when called from the NetYCE API's, support more than one “custom” value. These additional variables will only be recognized if the service-type API call has the correct custom name and corresponding value. Listed below are the Service-type commands and the additional reserved “custom” variable names it can use.

Using these names might affect your intentions. E.g. When adding a node in a service-type using the variable (node_name), it will use this name without having to specify an entry to specify the hostname. Therefore not creating a step in between creating the hostname based on the node_type. This could be very useful.

Though be careful when using the variable (node_name) when adding 2 nodes. This will end up in an error, since the second node will want to use the same hostname.

If these custom names are provided to the service type API call, they will be used even in absence of an entry in the service type itself.

ADD CLIENT CURRENT CLIENT_CODE value clnt

ADD IPV6_NET srv CUSTOM value ipv6net

ADD MPLS_VRF CURRENT VRF_ID value mpls_vrf
ADD MPLS_VRF CURRENT VRF_NAME value mpls_vrf
ADD MPLS_VRF CURRENT VRF_ID_NEW value mpls_vrf

LOCATE MPLS_VRF CURRENT VRF_NAME value mpls_vrf
LOCATE MPLS_VRF CURRENT VRF_ID value mpls_vrf

LOCATE SUBNET <srv> NET_ADDRESS value net
LOCATE SUBNET <srv> NET_NAME value net
LOCATE SUBNET <srv> NET_DESCR value net
LOCATE SUBNET <srv> VLAN_ID value net

If the vrf_id or vrf_name is included in the custom vars, the located subnet must be assigned this Vrf.

ADD NODE srv NODE_TYPE value node

ADD SERVICE sit CURRENT value srv
ADD SERVICE SITE CURRENT value
ADD SERVICE SITE SITE_CODE sit srv

ADD SUBNET srv CUSTOM value

ADD SUPERNET clnt IP_PLAN value super
ADD SUPERNET clnt IP_SUPERNET value super

ADD VRF node VRF_ID value vrf
ADD VRF node VRF_NAME value vrf

ADD CMDB dom NODE value cmdb
ADD CMDB dom NODE node cmdb

ASSIGN SITE sit -attribute- value NULL
ASSIGN SITE sit PAR_GROUP value NULL

ADD SITE clnt SITE_CODE value site

ADD SERVER clnt SERVER_KEY value server ADD SERVER clnt SERVER_KEY value server