Skip to content

Commit f67407a

Browse files
Merge pull request #324 from SUNET/bugfix.confirm_mode0_commitmessagenotimplemented
v1.5.1 bugfix
2 parents a09b3a9 + 761fcf9 commit f67407a

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

.jenkins.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extra_jobs:
4545
docker_name: cnaas/api
4646
docker_context_dir: docker/api
4747
docker_tags:
48-
- "v1.5"
48+
- "v1.6"
4949
- "develop"
5050

5151
- name: cnaas-api-master
@@ -56,7 +56,7 @@ extra_jobs:
5656
docker_name: cnaas/api
5757
docker_context_dir: docker/api
5858
docker_tags:
59-
- "v1.4"
59+
- "v1.5"
6060
- "master"
6161

6262
- name: cnaas-postgres

docs/apiref/interfaces.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ Data can contain any of these optional keys:
149149
- aggregate_id: Identifier for configuring LACP etc. Integer value.
150150
Special value -1 means configure MLAG and use ID based on indexnum.
151151
- bpdu_filter: bool defining STP BPDU feature enabled/disabled
152-
- redundant_link: bool allows specifying if this link allows non-redundant downlinks
152+
- redundant_link: bool specifying if access switch connections to this interface requires
153+
redundant connections, which is the default. Set to false to allow non-redundant downlink.
153154
- tags: List of strings, user-defined custom tags to use in templates
154155
- cli_append_str: String of custom config that is appended to generated CLI config
155156
- neighbor: Populated at init, contains hostname of peer. Should normally never

docs/changelog/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Changelog
22
=========
33

4+
Version 1.5.1
5+
-------------
6+
7+
Bug fixes:
8+
9+
- Fix commit confirm mode 0 for EOS
10+
- Update documentation for redundant_link
11+
412
Version 1.5.0
513
-------------
614

src/cnaas_nms/devicehandler/sync_devices.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,6 @@ def push_sync_device(
546546
"replace": True,
547547
"configuration": task.host["config"],
548548
"dry_run": dry_run,
549-
"commit_message": "Job id {}".format(job_id),
550549
}
551550
if dry_run:
552551
task_args["task"] = napalm_configure
@@ -948,7 +947,7 @@ def sync_devices(
948947
remove_sync_events(hostname)
949948
dev.last_seen = datetime.datetime.utcnow()
950949
if not dry_run and get_confirm_mode(confirm_mode_override) != 2:
951-
if failed_hosts:
950+
if failed_hosts and get_confirm_mode(confirm_mode_override) == 1:
952951
logger.error(
953952
"One or more devices failed to commit configuration, they will roll back configuration"
954953
" in {}s: {}".format(api_settings.COMMIT_CONFIRMED_TIMEOUT, ", ".join(failed_hosts))

src/cnaas_nms/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = "1.5.0"
1+
__version__ = "1.5.1"
22
__version_info__ = tuple([field for field in __version__.split(".")])
33
__api_version__ = "v1.0"

0 commit comments

Comments
 (0)