| 1 | package Net::Netconf::Constants; | ||
| 2 | |||
| 3 | our $VERSION ='0.01'; | ||
| 4 | # Netconf server: minimum version | ||
| 5 | use constant NC_VERS_MIN => 7.5; | ||
| 6 | # Constants pertaining to the Netconf states | ||
| 7 | use constant NC_STATE_DISCONN => 0; | ||
| 8 | use constant NC_STATE_CONN => 1; | ||
| 9 | use constant NC_STATE_HELLO_RECVD => 2; | ||
| 10 | use constant NC_STATE_HELLO_SENT => 3; | ||
| 11 | use constant NC_STATE_REQ_SENT => 4; | ||
| 12 | use constant NC_STATE_REQ_RECVD => 5; | ||
| 13 | use constant NC_DEFAULT_PORT => 830; | ||
| 14 | |||
| 15 | # Netconf tags of interest to us | ||
| 16 | use constant NC_HELLO_TAG => qq(hello); | ||
| 17 | use constant NC_REPLY_TAG => qq(rpc-reply); | ||
| 18 | use constant NC_DEFAULT_CAP => | ||
| 19 | qq(<capability>urn:ietf:params:xml:ns:netconf:base:1.0</capability> | ||
| 20 | <capability>urn:ietf:params:xml:ns:netconf:base:1.0#candidate</capability> | ||
| 21 | <capability>urn:ietf:params:xml:ns:netconf:base:1.0#confirmed-commit</capability> | ||
| 22 | <capability>urn:ietf:params:xml:ns:netconf:base:1.0#validate</capability> | ||
| 23 | <capability>urn:ietf:params:xml:ns:netconf:base:1.0#url?protocol=http,ftp,file</capability>); | ||
| 24 | |||
| 25 | 1; | ||
| 26 | |||
| 27 | |||
| 28 | __END__ |