cisco-axl 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -103,6 +103,7 @@ Current options include:
|
|
|
103
103
|
| option | type | description |
|
|
104
104
|
| :--------------------------- | :------ | :---------------------------------------------------------------------------------- |
|
|
105
105
|
| clean | boolean | Default: **false**. Allows method to remove all tags that have no values from return data. |
|
|
106
|
+
| removeAttributes | boolean | Default: **false**. Allows method to remove all attributes tags return data. |
|
|
106
107
|
| dataContainerIdentifierTails | string | Default: **'\_data'**. executeOperation will automatically remove any tag with the defined string. This is used with json-variables library. |
|
|
107
108
|
|
|
108
109
|
Example:
|
|
@@ -110,6 +111,7 @@ Example:
|
|
|
110
111
|
```node
|
|
111
112
|
var opts = {
|
|
112
113
|
clean: true,
|
|
114
|
+
removeAttributes: false,
|
|
113
115
|
dataContainerIdentifierTails: "_data",
|
|
114
116
|
};
|
|
115
117
|
```
|
|
@@ -3,18 +3,16 @@ const path = require("path");
|
|
|
3
3
|
const fs = require("fs");
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
This script using json-variables (https://codsen.com/os/json-variables) to add a new phone from a template.
|
|
7
|
-
The AXL "addPhone" operation will either add an existing line or add a new one.
|
|
8
|
-
We will be using the "updateLine" to follow behind and update a few of the fields that "addPhone" does not include.
|
|
9
6
|
|
|
10
|
-
|
|
7
|
+
This script will use getPhone to retrieve an existing phone and save as a JSON file. This file can then be edited to use as a template for other operations.
|
|
8
|
+
|
|
11
9
|
*/
|
|
12
10
|
|
|
13
11
|
// Set up new AXL service (DevNet sandbox credentials: https://devnetsandbox.cisco.com/)
|
|
14
12
|
let service = new axlService(
|
|
15
|
-
"
|
|
13
|
+
"10.10.20.1",
|
|
16
14
|
"administrator",
|
|
17
|
-
"
|
|
15
|
+
"ciscopsdt",
|
|
18
16
|
"14.0"
|
|
19
17
|
);
|
|
20
18
|
|