Re: Templating/automating configuration

2017-06-06 Thread Alexis Letessier
Go templates: http://golang.org  Fast and simple with gRPC 
and other good stuff like kelsey’s confd (a daemon that watches for changes and 
update templates)

% go doc text/template
package template // import "text/template"

Package template implements data-driven templates for generating textual
output.

To generate HTML output, see package html/template, which has the same
interface as this package but automatically secures HTML output against
certain attacks.

Templates are executed by applying them to a data structure. Annotations in
the template refer to elements of the data structure (typically a field of a
struct or a key in a map) to control execution and derive values to be
displayed. Execution of the template walks the structure and sets the
cursor, represented by a period '.' and called "dot", to the value at the
current location in the structure as execution proceeds.

The input text for a template is UTF-8-encoded text in any format.
"Actions"--data evaluations or control structures--are delimited by "{{" and
"}}"; all text outside actions is copied to the output unchanged. Except for
raw strings, actions may not span newlines, although comments can.

Once parsed, a template may be executed safely in parallel.

Here is a trivial example that prints "17 items are made of wool".

type Inventory struct {
Material string
Countuint
}
sweaters := Inventory{"wool", 17}
tmpl, err := template.New("test").Parse("{{.Count}} items are made of 
{{.Material}}")
if err != nil { panic(err) }
err = tmpl.Execute(os.Stdout, sweaters)
if err != nil { panic(err) }

Alexis

> On 6 Jun 2017, at 15:22, Graham Johnston  wrote:
> 
> Short of complete SDN, for those of you that have some degree of 
> configuration templating and/or automation tools what is it that you run? I'm 
> envisioning some sort of tool that let's me define template snippets of 
> configuration and aids in their deployment to devices. I'm okay doing the 
> heaving lifting in defining everything, I'm just looking for the tool that 
> stitches it together and hopefully makes things a little less error prone for 
> those who aren't as adept.
> 
> Graham Johnston
> Network Planner
> Westman Communications Group
> 204.717.2829
> johnst...@westmancom.com
> 



Re: Lille, France

2017-06-01 Thread Alexis Letessier
Hello Rod,

Altice France can sell you optical links or optical transport or IPv4/v6 
transit from any to any point in France. Lille to Paris should be OK.

For last mile networks we should be able to help you since we have the biggest 
optical network in France (we have approximately 2 million fiber optic 
customers).

If you can provide with the exact GPS points you wish to connect we could try 
to estimate the price with you. Do you want black fiber or MPLS transport ?

Last time i did that for one of our backbones, i ended up using optical 
transmission which is based on 100g links. Quick and easy.

Regards,

Alexis Letessier



> On 24 May 2017, at 21:03, Rod Beck <rod.b...@unitedcablecompany.com> wrote:
> 
> Hi,
> 
> 
> I am looking for insight into which carriers have metropolitan or last mile 
> networks in this city. Preferably connected to Paris.
> 
> 
> Roderick Beck
> 
> Director of Global Sales
> 
> United Cable Company
> 
> www.unitedcablecompany.com<http://www.unitedcablecompany.com>
> 
> 85 Király utca, 1077 Budapest
> 
> rod.b...@unitedcablecompany.com
> 
> 36-30-859-5144
> 
> 
> [1467221477350_image005.png]