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
Interfaces are configured in the file `host_vars/HOST/interfaces.yaml`
26
-
27
-
An example of this file is below:
28
-
29
-
```
30
-
interfaces:
31
-
twentyFiveGigE 1/1:
32
-
description: "example interface"
33
-
state: "up"
34
-
mtu: 9216
35
-
Port-channel 1:
36
-
state: "up"
37
-
lag-members:
38
-
- "hundredGigE 1/1"
39
-
- "hundredGigE 1/2"
40
-
portmode: "access"
41
-
untagged: 10
42
-
Vlan 207:
43
-
state: "up"
44
-
ip4: "10.10.10.10/20"
45
-
```
46
-
47
-
### Available Fields
48
-
49
-
* `name` Only for VLANs, sets the name of interfaces. (String)
55
+
### Available Fields (VLAN)
56
+
57
+
* `id` VLAN 802.1q tag (Integer)
58
+
* `name` Identifying name for the vlan (String)
59
+
* `description` Description for the vlan (String)
60
+
* `managed` Don't create nor destroy this VLAN (Boolean)
61
+
* `fabrics` Define fabrics on which vlans can exist (ansible host groups) (List of strings)
62
+
63
+
### Available Fields (Interface)
64
+
50
65
* `description` Sets the description of the interface. (String)
51
66
* `state` Sets the admin state of the mode ("up", or "down")
52
67
* `mtu` Sets the MTU of the interface (Integer 576-9416)
@@ -61,6 +76,8 @@ interfaces:
61
76
* `mode` Sets mode (`single`, `dual`, or `quad`)
62
77
* `speed` Sets the fanout speed (`10G`, `25G`, or `40G`)
63
78
* `managed` If true, this interface will not be configured by ansible. Works for both VLANs and interfaces (Boolean)
79
+
* `allowlist` Only allow modification of these fields (List of Strings)
80
+
* `blocklist` Block modification of these fields (List of Strings)
64
81
* `portmode` L2 portmode of an interface (String "access", "trunk", or "hybrid")
65
82
* `untagged` Single vlan to untag, requires portmode access or hybrid (Integer 2-4094)
66
83
* `tagged` List of vlans to tag, requires portmode trunk or hybrid (List of Integers 2-4094)
@@ -72,14 +89,15 @@ interfaces:
72
89
* `lacp-rate` Sets the switch rate for LACP only (String "fast" or "slow")
73
90
* `mlag` Set the label of the peer port-channel for a paired switch (String interface name)
74
91
75
-
## Switch Configuration
92
+
## MOC Specific Documentation
93
+
94
+
Every switch that exists in the MOCA system exists in this ansible site's host file. This project does not support all NOS types yet so some don't have individual host vars but exist in the hosts file for documentation sake.
76
95
77
-
Switches will need some manual configuration before being able to be set up from this ansible site.
96
+
### Naming Convention
78
97
79
-
### Dell OS9 Switches
98
+
Network equipment addresses follow a common convention. Each list item represents one octet of an IPv4 address:
80
99
81
-
1. On the switch, enter `conf` mode
82
-
1. Set the enable password: `enable password <DEFAULT_OS9_PASSWD>`
83
-
1. Set the ssh user `username admin password <DEFAULT_OS9_PASSWD>`
84
-
1. Enable ssh server `ip ssh server enable`
85
-
1. Set the access IP (usually `managementethernet 1/1`)
100
+
* `10.`
101
+
* `[80,81]` 80 for MOC/NERC, 81 for OCT
102
+
* `[1,2]` 1 for core networking, 2 for rack networking
103
+
* `10*<rack number> + unit number` Each rack gets its own unique number. For example, 3 switches in a rack might be `21`, `22`, and `23`
0 commit comments