From 8a7077052abf2dd79d8235e939836b7e3fe58132 Mon Sep 17 00:00:00 2001 From: horsitis <31382712+horsitis@users.noreply.github.com> Date: Wed, 17 Mar 2021 11:50:50 +0200 Subject: [PATCH 1/3] Update juniper.py Fix error "traceroute: wait must be >1 sec" --- hyperglass/models/commands/juniper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperglass/models/commands/juniper.py b/hyperglass/models/commands/juniper.py index c761f4b..41478b7 100644 --- a/hyperglass/models/commands/juniper.py +++ b/hyperglass/models/commands/juniper.py @@ -74,7 +74,7 @@ _structured = CommandGroup( bgp_aspath='show route protocol bgp table {vrf}.inet6.0 aspath-regex "{target}" detail | display xml', bgp_community="show route protocol bgp table {vrf}.inet6.0 community {target} detail | display xml", ping="ping inet6 routing-instance {vrf} {target} count 5 source {source}", - traceroute="traceroute inet6 routing-instance {vrf} {target} wait 1 source {source}", + traceroute="traceroute inet6 routing-instance {vrf} {target} wait 2 source {source}", ), ) From 2d55171b07a1a1098160cdcdf0f7c7dcd72abf26 Mon Sep 17 00:00:00 2001 From: shrunbr Date: Mon, 29 Mar 2021 04:07:34 +0000 Subject: [PATCH 2/3] Added note to surround IPv6 address in quotes --- docs/docs/adding-devices.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/adding-devices.mdx b/docs/docs/adding-devices.mdx index 1cc2c76..67b173e 100644 --- a/docs/docs/adding-devices.mdx +++ b/docs/docs/adding-devices.mdx @@ -131,11 +131,11 @@ May be set to `null` to disable IPv4 for this VRF, on the parent device. May be set to `null` to disable IPv6 for this VRF, on the parent device. -| Parameter | Type | Default | Description | -| :-------------------- | :------ | :------ | :-------------------------------------------------------------------- | -| `source_address` | String | | Device's source IPv6 address for directed queries (ping, traceroute). | -| `force_cidr` | Boolean | `true` | Convert IP host queries to actual advertised containing prefix length | -| `access_list` | | | [IPv6 Access List Configuration](#access_list) | +| Parameter | Type | Default | Description | +| :-------------------- | :------ | :------ | :--------------------------------------------------------------------------------------------------------------- | +| `source_address` | String | | Device's source IPv6 address for directed queries (ping, traceroute). This address must be surrounded by quotes. | +| `force_cidr` | Boolean | `true` | Convert IP host queries to actual advertised containing prefix length | +| `access_list` | | | [IPv6 Access List Configuration](#access_list) | :::note The `force_cidr` option will ensure that a **BGP Route** query for an IP host (/32 IPv4, /128 IPv6) is converted to its containing prefix. For example, a query for `1.1.1.1` would be converted to a query for `1.1.1.0/24`. This is because not all platforms support a BGP lookup for a host (this is primary a problem with IPv6, but the option applies to both address families). From d39eb8915d7296e9fa6948b80bb2aabda86c7f62 Mon Sep 17 00:00:00 2001 From: shrunbr Date: Mon, 29 Mar 2021 04:09:03 +0000 Subject: [PATCH 3/3] Added example to IPv6 address in quotes --- docs/docs/adding-devices.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/adding-devices.mdx b/docs/docs/adding-devices.mdx index 67b173e..e7cb51b 100644 --- a/docs/docs/adding-devices.mdx +++ b/docs/docs/adding-devices.mdx @@ -131,11 +131,11 @@ May be set to `null` to disable IPv4 for this VRF, on the parent device. May be set to `null` to disable IPv6 for this VRF, on the parent device. -| Parameter | Type | Default | Description | -| :-------------------- | :------ | :------ | :--------------------------------------------------------------------------------------------------------------- | -| `source_address` | String | | Device's source IPv6 address for directed queries (ping, traceroute). This address must be surrounded by quotes. | -| `force_cidr` | Boolean | `true` | Convert IP host queries to actual advertised containing prefix length | -| `access_list` | | | [IPv6 Access List Configuration](#access_list) | +| Parameter | Type | Default | Description | +| :-------------------- | :------ | :------ | :------------------------------------------------------------------------------------------------------------------------------------- | +| `source_address` | String | | Device's source IPv6 address for directed queries (ping, traceroute). This address must be surrounded by quotes. Ex. "0000:0000:0000::"| +| `force_cidr` | Boolean | `true` | Convert IP host queries to actual advertised containing prefix length | +| `access_list` | | | [IPv6 Access List Configuration](#access_list) | :::note The `force_cidr` option will ensure that a **BGP Route** query for an IP host (/32 IPv4, /128 IPv6) is converted to its containing prefix. For example, a query for `1.1.1.1` would be converted to a query for `1.1.1.0/24`. This is because not all platforms support a BGP lookup for a host (this is primary a problem with IPv6, but the option applies to both address families).