1%%-------------------------------------------------------------------- 2%% %CopyrightBegin% 3%% 4%% Copyright Ericsson AB 2012-2018. All Rights Reserved. 5%% 6%% Licensed under the Apache License, Version 2.0 (the "License"); 7%% you may not use this file except in compliance with the License. 8%% You may obtain a copy of the License at 9%% 10%% http://www.apache.org/licenses/LICENSE-2.0 11%% 12%% Unless required by applicable law or agreed to in writing, software 13%% distributed under the License is distributed on an "AS IS" BASIS, 14%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15%% See the License for the specific language governing permissions and 16%% limitations under the License. 17%% 18%% %CopyrightEnd% 19%% 20%%---------------------------------------------------------------------- 21%% File: ct_netconfc.hrl 22%% 23%% Description: 24%% This file defines constant values and records used by the 25%% netconf client ct_netconfc. 26%% 27%% Netconf Client Interface. 28%%---------------------------------------------------------------------- 29%%---------------------------------------------------------------------- 30 31 32%% Default port number (RFC 4742/IANA). 33-define(DEFAULT_PORT, 830). 34 35%% Default timeout to wait for netconf server to reply to a request 36-define(DEFAULT_TIMEOUT, infinity). %% msec 37 38%% Namespaces 39-define(NETCONF_NAMESPACE_ATTR,[{xmlns,?NETCONF_NAMESPACE}]). 40-define(ACTION_NAMESPACE_ATTR,[{xmlns,?ACTION_NAMESPACE}]). 41-define(NETCONF_NOTIF_NAMESPACE_ATTR,[{xmlns,?NETCONF_NOTIF_NAMESPACE}]). 42-define(NETMOD_NOTIF_NAMESPACE_ATTR,[{xmlns,?NETMOD_NOTIF_NAMESPACE}]). 43 44-define(NETCONF_NAMESPACE,"urn:ietf:params:xml:ns:netconf:base:1.0"). 45-define(ACTION_NAMESPACE,"urn:com:ericsson:ecim:1.0"). 46-define(NETCONF_NOTIF_NAMESPACE, 47 "urn:ietf:params:xml:ns:netconf:notification:1.0"). 48-define(NETMOD_NOTIF_NAMESPACE,"urn:ietf:params:xml:ns:netmod:notification"). 49 50%% Capabilities 51-define(NETCONF_BASE_CAP,"urn:ietf:params:netconf:base:"). 52-define(NETCONF_BASE_CAP_VSN,"1.0"). 53 54%% Misc 55-define(END_TAG,<<"]]>]]>">>). 56 57-define(FORMAT(_F, _A), lists:flatten(io_lib:format(_F, _A))). 58