Skip to content

Commit 88e0d96

Browse files
authored
Merge pull request #579 from cisco/release_1.9.0
Release 1.9.0
2 parents 0976d7f + c2927b8 commit 88e0d96

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1295
-34
lines changed

CHANGELOG.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,50 @@
11
Changelog
22
=========
33

4+
## [v1.9.0]
5+
6+
### New Cisco Resources
7+
* EVPN Multisite
8+
* evpn_multisite (@rahushen)
9+
* evpn_stormcontrol (@rahushen)
10+
* interface_evpn_multisite (@rahushen)
11+
12+
* TRM
13+
* evpn_multicast (@rahushen)
14+
* ip_multicast (@rahushen)
15+
16+
### Added
17+
* Extend vxlan_vtep with attributes:
18+
* `multisite_border_gateway_interface`
19+
20+
* Extend vxlan_vtep_vni with attributes:
21+
* `multisite_ingress_replication`
22+
23+
* Extend bgp_neighbor with attributes:
24+
* `peer_type`
25+
26+
* Extend bgp_neighbor_af with attributes:
27+
* `rewrite_evpn_rt_asn`
28+
29+
* Extend vrf_af with attributes:
30+
* `route_target_both_auto_mvpn`
31+
* `route_target_export_mvpn`
32+
* `route_target_import_mvpn`
33+
34+
* Extend feature with attributes:
35+
* `ngmvpn_enable`
36+
* `ngmvpn_disable`
37+
* `ngmvpn_enabled?`
38+
39+
### Changed
40+
41+
### Removed
42+
43+
### Issues Addressed
44+
445
## [v1.8.0]
546

6-
#### Cisco Resources
47+
### New Cisco Resources
748
* ObjectGroup
849
* object_group (@saichint)
950
* object_group_entry (@saichint)
@@ -513,6 +554,7 @@ Changelog
513554
[git-flow]: https://github.com/petervanderdoes/gitflow-avh
514555
[SimpleCov]: https://github.com/colszowka/simplecov
515556

557+
[v1.9.0]: https://github.com/cisco/cisco-network-node-utils/compare/v1.8.0...v1.9.0
516558
[v1.8.0]: https://github.com/cisco/cisco-network-node-utils/compare/v1.7.0...v1.8.0
517559
[v1.7.0]: https://github.com/cisco/cisco-network-node-utils/compare/v1.6.0...v1.7.0
518560
[v1.6.0]: https://github.com/cisco/cisco-network-node-utils/compare/v1.5.0...v1.6.0

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ This CiscoNodeUtils gem release supports the following:
4242

4343
Platform | OS | OS Version |
4444
------------------|--------|----------------------|
45-
Cisco Nexus N9k | NX-OS | 7.0(3)I2(1) and later
46-
Cisco Nexus N3k | NX-OS | 7.0(3)I2(1) and later
45+
Cisco Nexus N9k | NX-OS | 7.0(3)I2(5) and later
46+
Cisco Nexus N3k | NX-OS | 7.0(3)I2(5) and later
4747
Cisco Nexus N3K-F | NX-OS | 7.0(3)F3(2) and later
4848
Cisco Nexus N5k | NX-OS | 7.3(0)N1(1) and later
4949
Cisco Nexus N6k | NX-OS | 7.3(0)N1(1) and later
@@ -91,7 +91,7 @@ An example configuration file (illustrating each of the above scenarios) is prov
9191

9292
The `Client` class provides a low-level interface for communicating with the Cisco network node. It provides the base APIs `create`, `get`, and `set`.
9393

94-
* `Cisco::Client::NXAPI` - client for communicating with NX-OS 7.0(3)I2(1) and later, using NX-API.
94+
* `Cisco::Client::NXAPI` - client for communicating with NX-OS 7.0(3)I2(5) and later, using NX-API.
9595

9696
For a greater level of abstraction, the `Node` class is generally used, but the `Client` classes can be invoked directly if desired.
9797

@@ -217,7 +217,7 @@ See [CHANGELOG](CHANGELOG.md) for a list of changes.
217217
## <a name="license_info">License Information</a>
218218

219219

220-
Copyright (c) 2013-2017 Cisco and/or its affiliates.
220+
Copyright (c) 2013-2018 Cisco and/or its affiliates.
221221

222222
Licensed under the Apache License, Version 2.0 (the "License");
223223
you may not use this file except in compliance with the License.

docs/README-maintainers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ When we are considering publishing a new release, all of the following steps mus
2525
1. Run full minitest regression on [supported platforms.](https://github.com/cisco/cisco-network-node-utils#overview)
2626
* Fix All Bugs.
2727
* Make sure proper test case skips are in place for unsupported platforms.
28+
* Make sure [yum_package.yaml](../tests/yum_package.yaml) is updated with all versions that need to be tested.
2829

2930
1. Build gem and test it in combination with the latest released Puppet module (using Beaker and demo manifests) to make sure no backward compatibility issues have been introduced.
3031

lib/cisco_node_utils/bgp_neighbor.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,5 +503,25 @@ def mode_cli_to_symbol(cli)
503503
fail KeyError
504504
end
505505
end
506+
507+
def default_peer_type
508+
config_get_default('bgp_neighbor', 'peer_type')
509+
end
510+
511+
def peer_type=(val)
512+
if val == default_peer_type
513+
@set_args[:state] = 'no'
514+
@set_args[:peer_type] = ''
515+
else
516+
Feature.nv_overlay_evpn_enable
517+
@set_args[:peer_type] = val
518+
@set_args[:state] = ''
519+
end
520+
config_set('bgp_neighbor', 'peer_type', @set_args)
521+
end
522+
523+
def peer_type
524+
config_get('bgp_neighbor', 'peer_type', @get_args)
525+
end
506526
end # class
507527
end # module

lib/cisco_node_utils/bgp_neighbor_af.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,5 +756,25 @@ def weight=(int)
756756
def default_weight
757757
config_get_default('bgp_neighbor_af', 'weight')
758758
end
759+
760+
def rewrite_evpn_rt_asn
761+
config_get('bgp_neighbor_af', 'rewrite_evpn_rt_asn', @get_args)
762+
end
763+
764+
def rewrite_evpn_rt_asn=(state)
765+
Feature.nv_overlay_evpn_enable if state
766+
set_args_keys(state: (state ? '' : 'no'))
767+
if @set_args[:state] == 'no'
768+
unless rewrite_evpn_rt_asn == default_rewrite_evpn_rt_asn
769+
config_set('bgp_neighbor_af', 'rewrite_evpn_rt_asn', @set_args)
770+
end
771+
else
772+
config_set('bgp_neighbor_af', 'rewrite_evpn_rt_asn', @set_args)
773+
end
774+
end
775+
776+
def default_rewrite_evpn_rt_asn
777+
config_get_default('bgp_neighbor_af', 'rewrite_evpn_rt_asn')
778+
end
759779
end
760780
end

lib/cisco_node_utils/cmd_ref/bgp_neighbor.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ password_type:
114114
get_value: '/^password (\d+)/'
115115
default_value: 0
116116

117+
peer_type:
118+
_exclude: [ios_xr, N3k, N3k-F, N5k, N6k, N7k, N9k-F]
119+
kind: string
120+
get_value: '/^peer-type (\S+)$/'
121+
set_value: '<state> peer-type <peer_type>'
122+
default_value: ""
123+
117124
remote_as:
118125
get_value: '/^remote-as (\d*?.?\d+?)$/'
119126
set_value: '<state> remote-as <remote_as>'

lib/cisco_node_utils/cmd_ref/bgp_neighbor_af.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ prefix_list_out:
146146
set_value: '<state> prefix-list <str> out'
147147
default_value: ''
148148

149+
rewrite_evpn_rt_asn:
150+
_exclude: [ios_xr, N3k, N3k-F, N5k, N6k, N7k, N9k-F]
151+
kind: boolean
152+
get_value: '/^rewrite-evpn-rt-asn$/'
153+
set_value: '<state> rewrite-evpn-rt-asn'
154+
default_value: false
155+
149156
route_map_in:
150157
kind: string
151158
default_value: ''
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# evpn_multicast.yaml
2+
---
3+
_exclude: [ios_xr, N3k, N3k-F, N5k, N6k, N7k, N9k-F]
4+
5+
_template:
6+
get_command: "show running-config | section advertise"
7+
8+
multicast:
9+
context: ~
10+
get_value: '^advertise evpn multicast$'
11+
set_value: "<state> advertise evpn multicast"
12+
default_value: ''
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# evpn_multisite.yaml
2+
---
3+
_exclude: [ios_xr, N3k, N3k-F, N5k, N6k, N7k, N9k-F]
4+
5+
_template:
6+
get_command: "show running-config | section multisite"
7+
8+
delay_restore:
9+
default_value: ""
10+
get_context: ['/^evpn multisite border-gateway <multisiteid>$/']
11+
get_value: '/^delay-restore\s+time\s+(\d+)$/'
12+
set_context: ['evpn multisite border-gateway <multisiteid>']
13+
set_value: "<state> delay-restore time <time>"
14+
15+
multisite:
16+
context: ~
17+
get_value: 'evpn multisite border-gateway ([\d.]+)'
18+
set_value: "<state> evpn multisite border-gateway <multisiteid>"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# evpn_stormcontrol.yaml
2+
---
3+
_exclude: [ios_xr, N3k, N3k-F, N5k, N6k, N7k, N9k-F]
4+
5+
_template:
6+
get_command: "show running-config | section storm-control"
7+
8+
broadcast:
9+
get_value: 'evpn storm-control broadcast level ([\d.]+)'
10+
set_value: "<state> evpn storm-control broadcast level <level>"
11+
12+
multicast:
13+
get_value: 'evpn storm-control multicast level ([\d.]+)'
14+
set_value: "<state> evpn storm-control multicast level <level>"
15+
16+
unicast:
17+
get_value: 'evpn storm-control unicast level ([\d.]+)'
18+
set_value: "<state> evpn storm-control unicast level <level>"

0 commit comments

Comments
 (0)