Skip to content

Commit

Permalink
Merge pull request #402 from jeremmfr/main
Browse files Browse the repository at this point in the history
Release v1.28.0
  • Loading branch information
jeremmfr authored May 30, 2022
2 parents 90c52a7 + 21f9066 commit 10f76a8
Show file tree
Hide file tree
Showing 151 changed files with 11,896 additions and 8,068 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# These are supported funding model platforms
custom: "https://www.buymeacoffee.com/jeremmfr"
2 changes: 1 addition & 1 deletion .github/workflows/linters-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.1.0
uses: golangci/golangci-lint-action@v3.2.0
with:
version: latest
args: -c .golangci.yml -v
4 changes: 2 additions & 2 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
- name: Check out code
uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.1.0
uses: golangci/golangci-lint-action@v3.2.0
with:
version: v1.45
version: v1.46
args: -c .golangci.yml -v

markdown-lint:
Expand Down
5 changes: 4 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,23 @@ linters:
- interfacer # deprecated 1.38
- scopelint # deprecated 1.39
- golint # deprecated 1.41
- exhaustivestruct # deprecated 1.46
- funlen
- dupl
- wsl
- gomnd
- goerr113
- nestif
- exhaustivestruct
- exhaustruct
- paralleltest
- gci
- cyclop
- forcetypeassert
- gomoddirectives
- varnamelen
- nonamedreturns
- maintidx
- execinquery
linters-settings:
gocognit:
# minimal code complexity to report, 30 by default
Expand Down
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@ ENHANCEMENTS:

BUG FIXES:

## 1.28.0 (May 30, 2022)

FEATURES:

* add `junos_interface_logical_info` data source (Fixes [#393](https://github.com/jeremmfr/terraform-provider-junos/issues/393))
* add `junos_rip_group` resource
* add `junos_rip_neighbor` resource

ENHANCEMENTS:

* resource/`junos_interface_logical`: add `disable` argument (Fixes [#395](https://github.com/jeremmfr/terraform-provider-junos/issues/395))
* data-source/`junos_interface_logical`: add `disable` attribute (like resource)
* resource/`junos_interface_physical`: add `disable` argument
* data-source/`junos_interface_physical`: add `disable` attribute (like resource)
* resource/`junos_ospf_area`: add `realm` argument to add a OSPFv3 realm area. (Fixes [#392](https://github.com/jeremmfr/terraform-provider-junos/issues/392)),
add new `area_range`, `context_identifier`, `inter_area_prefix_export`, `inter_area_prefix_import`, `network_summary_export`, `network_summary_import`, `no_context_identifier_advertisement`, `nssa`, `stub` and `virtual_link` arguments,
add validation of `area_id`

BUG FIXES:

* provider: correctly set address to connect to Junos host when an IPv6 is used for provider `ip` argument (enclose IPv6 in square brackets)

## 1.27.0 (May 06, 2022)

ENHANCEMENTS:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<!-- markdownlint-disable -->
[![Release](https://img.shields.io/github/v/release/jeremmfr/terraform-provider-junos)](https://github.com/jeremmfr/terraform-provider-junos/releases)
[![Installs](https://img.shields.io/badge/dynamic/json?logo=terraform&label=installs&query=$.data.attributes.downloads&url=https%3A%2F%2Fregistry.terraform.io%2Fv2%2Fproviders%2F713)](https://registry.terraform.io/providers/jeremmfr/junos)
[![Installs](https://img.shields.io/badge/dynamic/json?logo=terraform&label=installs&query=$.data.attributes.total&url=https%3A%2F%2Fregistry.terraform.io%2Fv2%2Fproviders%2F713%2Fdownloads%2Fsummary)](https://registry.terraform.io/providers/jeremmfr/junos)
[![Registry](https://img.shields.io/badge/registry-doc%40latest-lightgrey?logo=terraform)](https://registry.terraform.io/providers/jeremmfr/junos/latest/docs)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jeremmfr/terraform-provider-junos/blob/main/LICENSE)
[![Go Status](https://github.com/jeremmfr/terraform-provider-junos/actions/workflows/go.yml/badge.svg)](https://github.com/jeremmfr/terraform-provider-junos/actions/workflows/go.yml)
Expand Down
4 changes: 3 additions & 1 deletion docs/data-sources/interface_logical.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ page_title: "Junos: junos_interface_logical"
# junos_interface_logical

Get information on a logical interface
(as with an junos_interface_logical resource import).
(as with a junos_interface_logical resource import).

## Example Usage

Expand Down Expand Up @@ -42,6 +42,8 @@ The following attributes are exported:
Name of unit interface (with dot).
- **description** (String)
Description for interface.
- **disable** (Boolean)
Interface disabled.
- **family_inet** (Block)
Family inet enabled and possible configuration.
- **address** (Block List)
Expand Down
45 changes: 45 additions & 0 deletions docs/data-sources/interface_logical_info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
page_title: "Junos: junos_interface_logical_info"
---

# junos_interface_logical_info

Get summary information about a logical interface (like its admin/operational statuses and IP addresses).

## Example Usage

```hcl
# Read statuses and addresses of ge-0/0/3.0
data "junos_interface_logical_info" "ge003_0" {
name = "ge-0/0/3.0"
}
output "ge003_0" {
value = data.junos_interface_logical_info.ge003_0
}
```

## Argument Reference

The following arguments are supported:

- **name** (Required, String)
Name of unit interface (with dot).

## Attributes Reference

The following attributes are exported:

- **id** (String)
The name of interface read.
- **admin_status** (String)
Admin status.
- **oper_status** (String)
Operational status.
- **family_inet** (Block)
Family inet enabled.
- **address_cidr** (List of String)
List of addresses in CIDR format.
- **family_inet6** (Block)
Family inet6 enabled.
- **address_cidr** (List of String)
List of addresses in CIDR format.
4 changes: 3 additions & 1 deletion docs/data-sources/interface_physical.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ page_title: "Junos: junos_interface_physical"
# junos_interface_physical

Get information on a physical interface
(as with an junos_interface_physical resource import).
(as with a junos_interface_physical resource import).

## Example Usage

Expand Down Expand Up @@ -44,6 +44,8 @@ The following attributes are exported:
Minimum number of aggregated links.
- **description** (String)
Description for interface.
- **disable** (Boolean)
Interface disabled.
- **esi** (Block)
ESI Config parameters.
See [below for nested schema](#esi-attributes).
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/interfaces_physical_present.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ page_title: "Junos: junos_interfaces_physical_present"
# junos_interfaces_physical_present

Get list of all of filtered physical interfaces present on the Junos device and their
admin/operational status.
admin/operational statuses.

## Example Usage

Expand Down
2 changes: 2 additions & 0 deletions docs/resources/interface_logical.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ The following arguments are supported:
the dependency, but only if st0.x interface is empty or disable.
- **description** (Optional, String)
Description for interface.
- **disable** (Optional, Boolean)
Disable this logical interface.
- **family_inet** (Optional, Block)
Enable family inet and add configurations if specified.
- **address** (Optional, Block List)
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/interface_physical.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ The following arguments are supported:
Deprecated argument, use the `parent_ether_opts` argument instead.
- **description** (Optional, String)
Description for interface.
- **disable** (Optional, Boolean)
Disable this interface.
- **esi** (Optional, Block)
Define ESI Config parameters.
See [below for nested schema](#esi-arguments).
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/ospf.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ resource "junos_ospf" "ospf" {

The following arguments are supported:

- **routing_instance** (Optional, String)
- **routing_instance** (Optional, String, Forces new resource)
Routing instance.
Need to be `default` (for root level) or the name of routing instance.
Defaults to `default`.
Expand Down
Loading

0 comments on commit 10f76a8

Please sign in to comment.