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: CHANGELOG.md
+66Lines changed: 66 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,71 @@
1
1
Changelog
2
2
=========
3
3
4
+
## [v1.4.0]
5
+
6
+
### New feature support
7
+
8
+
#### Cisco Resources
9
+
* Bidirectional Forwarding Detection
10
+
* bfd (@saichint)
11
+
* Dynamic Host Configuration Protocol
12
+
* dhcp_relay_global (@saichint)
13
+
* OSPF
14
+
* ospf_area (@saichint)
15
+
* ospf_area_vlink (@saichint)
16
+
17
+
### Added
18
+
19
+
* Extend interface with attributes:
20
+
*`bfd_echo`
21
+
*`ipv4_dhcp_relay_addr`
22
+
*`ipv4_dhcp_relay_info_trust`
23
+
*`ipv4_dhcp_relay_src_addr_hsrp`
24
+
*`ipv4_dhcp_relay_src_intf`
25
+
*`ipv4_dhcp_relay_subnet_broadcast`
26
+
*`ipv4_dhcp_smart_relay`
27
+
*`ipv6_dhcp_relay_addr`
28
+
*`ipv6_dhcp_relay_src_intf`
29
+
*`storm_control_broadcast`
30
+
*`storm_control_multicast`
31
+
*`storm_control_unicast`
32
+
* Extend interface_ospf with attributes:
33
+
*`bfd`
34
+
*`mtu_ignore`
35
+
*`network_type`
36
+
*`priority`
37
+
*`shutdown`
38
+
*`transmit_delay`
39
+
* Extend interface_portchannel with attributes:
40
+
*`bfd_per_link`
41
+
* Extend router_ospf_vrf with attributes:
42
+
*`bfd`
43
+
* Extend bgp_neighbor with attributes:
44
+
*`bfd`
45
+
46
+
### Changed
47
+
* Deprecated `vlan` private-vlan properties and replaced with new methods. New file `vlan_DEPRECATED.rb` has been created to store the deprecated methods. The old -> new properties are:
* Deprecated `interface` private-vlan properties and replaced with new methods. New files `interface_DEPRECATED.rb` and `DEPRECATED.yaml` have been created to store the deprecated methods. The old -> new properties are:
Copy file name to clipboardExpand all lines: README.md
+44-43Lines changed: 44 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,9 +61,9 @@ To install the CiscoNodeUtils, use the following command:
61
61
Alternatively, if you've checked the source out directly, you can call
62
62
`rake install` from the root project directory.
63
63
64
-
## Configuration
64
+
## <aname="configuration">Configuration</a>
65
65
66
-
This gem may require configuration in order to be used. Two configuration file locations are supported:
66
+
Depending on the installation environment (Linux, NX-OS), this gem may require configuration in order to be used. Two configuration file locations are supported:
67
67
68
68
*`/etc/cisco_node_utils.yaml` (system and/or root user configuration)
@@ -72,13 +72,16 @@ If both files exist and are readable, configuration in the user-specific file wi
72
72
73
73
This file specifies the host, port, username, and/or password to be used to connect to one or more nodes.
74
74
75
+
* When installing this gem on NX-OS nodes, this file is generally not needed, as the default client behavior is sufficient.
75
76
* When developing for or testing this gem, this file can specify one or more NX-OS nodes to run tests against. In this case:
76
-
- A node labeled as `default` will be the default node to test against.
77
-
- Nodes with other names can be selected at test execution time.
78
-
- NX-OS nodes must be defined with a `host` (hostname or IP address), `username`, and `password`.
77
+
- A node labeled as `default` will be the default node to test against.
78
+
- Nodes with other names can be selected at test execution time.
79
+
- NX-OS nodes must be defined with a `host` (hostname or IP address), `username`, and `password`.
79
80
80
81
An example configuration file (illustrating each of the above scenarios) is provided with this gem at [`docs/cisco_node_utils.yaml.example`](docs/cisco_node_utils.yaml.example).
81
82
83
+
*For security purposes, it is highly recommended that access to this file be restricted to only the owning user (`chmod 0600`).*
84
+
82
85
## <aname="documentation">Documentation</a>
83
86
84
87
### Client
@@ -119,64 +122,62 @@ provider classes, and not directly call into `CommandReference` or `Node`.
119
122
120
123
## <aname="examples">Examples</a>
121
124
122
-
123
125
These utilities can be used directly on a Cisco device (as used by Puppet
124
126
and Chef) or can run on a workstation and point to a Cisco device (as used
125
-
by the included minitest suite).
127
+
by the included minitest suite). The Client and Node APIs will read
128
+
connection information (host, username, etc.) from a
129
+
[configuration file](#configuration). When creating a Client
130
+
you can choose which device in the config file to connect to by specifying a label
131
+
(if no label is specified, "default" is assumed). If a configuration file cannot be
132
+
found, the Client or Node will attempt to connect to the local device.
126
133
127
-
### Usage on a Cisco device
128
-
129
-
#### Low-level Client API
130
-
131
-
```ruby
132
-
require'cisco_node_utils'
134
+
*Note: Entries in the configuration file can specify local or remote devices.*
133
135
134
-
# get a connection to the local device
135
-
client =Cisco::Client.create()
136
-
137
-
client.get(command:'show version')
138
-
client.set(values:'vtp domain mycompany.com')
139
-
```
140
-
141
-
#### High-level Node API
142
-
143
-
```ruby
144
-
require'cisco_node_utils'
145
-
146
-
# get a connection to the local device
147
-
node =Cisco::Node.instance()
148
-
149
-
version = node.config_get("show_version", "system_image")
0 commit comments