File: README

package info (click to toggle)
yuma123 2.14-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,436 kB
  • sloc: ansic: 185,144; cpp: 10,968; python: 7,990; sh: 2,676; makefile: 1,175; xml: 807; exp: 776; perl: 70
file content (30 lines) | stat: -rw-r--r-- 939 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
This is a module that allows external programs to handle:
 - transactional configuration changes
 - status container read requests

Usage:
 export COMMIT_PROG=./my_commit_prog.py
 export GET_PROG=./my_get_prog
 export GET_CB_SCHEMA_MAP=my_get_cb_schema_map.txt
 netconfd --module=external-handler --no-startup --superuser=${USER}

Instead of a custom callback a general interface based on external command invocation is implemented.

Configuration transactions:

 commit-prog --before=<transaction_id_before>.xml --before=<transaction_id_after>.xml

Operational data read transaction:

 get-prog --instance-identifier=/interface-state/interface[name='ge0']

The registration schema points for the program-stat are specified in a text file.
Each line is an unique absolute-schema-nodeid.

get-cb-schema-map.txt:

 ...
 /interfaces-state/interface/oper-status
 ...

The two programs and the text file are specified as environment variables.