diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-02-27 11:45:47 -0800 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-02-27 11:45:47 -0800 |
commit | f0c5876c1203da45081d588fa2daf6b034281cba (patch) | |
tree | e22309e85459e9fa7300316fde978718478fc4cd /src/common | |
parent | 724b5f960353937d52b2fdcabfb6f011bea1446d (diff) | |
download | vyatta-cfg-f0c5876c1203da45081d588fa2daf6b034281cba.tar.gz vyatta-cfg-f0c5876c1203da45081d588fa2daf6b034281cba.zip |
Added environment variable that can be accessed in executing node.def script to check whether commit is in a delete or set action. The environmental variable is
"COMMIT_ACTION" the value can either be "SET" or "DELETE". The variable is set for the duration of the call being made to the action in the node.def file.
This should allow some simplication of scripts (i.e. such as setting up static routes).
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/defs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/defs.h b/src/common/defs.h index b489919..a26bfbc 100644 --- a/src/common/defs.h +++ b/src/common/defs.h @@ -11,6 +11,11 @@ #define MAX_DEPTH 128 +#define ENV_ACTION_NAME "COMMIT_ACTION" +#define ENV_ACTION_DELETE "DELETE" +#define ENV_ACTION_SET "SET" + + struct Result { int _err_code; |