You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/support/nxos.rst
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
1
+
NXOS
2
+
----
3
+
1
4
Notes on configuration replacement
2
-
==================================
5
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6
+
7
+
3
8
4
9
Config files aren't aren't normal config files but special "checkpoint" files.
5
10
That's because on NXOS the only way to replace a config without reboot is to rollback to a checkpoint (which could be a file).
@@ -8,7 +13,7 @@ The ``!#`` part isn't necessary for the rollback to work, but leaving these line
8
13
See the "Known gotchas" section below.
9
14
10
15
Prerequisites
11
-
-------------
16
+
_____________
12
17
13
18
Your device must be running NXOS 6.1. The features ``nxapi`` server ``scp-server`` must be enabled.
14
19
On the device and any checkpoint file you push, you must have the lines::
@@ -17,14 +22,14 @@ On the device and any checkpoint file you push, you must have the lines::
17
22
18
23
19
24
Getting a base checkpoint file
20
-
------------------------------
25
+
______________________________
21
26
22
27
An example of a checkpoint file can be seen in ``test/unit/nxos/new_good.conf``.
23
28
You can get a checkpoint file representing your device's current config by running the ``get_checkpoint_file()``
24
29
function in the ``napalm.nxos`` driver.
25
30
26
31
Known gotchas
27
-
------------------------------
32
+
_____________
28
33
29
34
- Leaving out a ``shutdown`` or ``no shutdown`` line will cause the switch to toggle the up/down state of an interface, depending on it's current state.
30
35
@@ -39,19 +44,19 @@ Known gotchas
39
44
vlan 30
40
45
41
46
Diffs
42
-
---------
47
+
_____
43
48
44
49
Diffs for config replacement are a list of commands that would be needed to take the device from it's current state
45
50
to the desired config state. See ``test/unit/nxos/new_good.diff`` as an example.
46
51
47
52
Notes on configuration merging
48
-
==============================
53
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
49
54
50
55
Merges are currently implemented by simply applying the the merge config line by line.
51
56
This doesn't use the checkpoint/rollback functionality.
52
57
As a result, merges are **not atomic**.
53
58
54
59
Diffs
55
-
-------
60
+
_____
56
61
57
62
Diffs for merges are simply the lines in the merge candidate config.
0 commit comments