From 81453f09728b02ebc870e8086de7bb9f3194db97 Mon Sep 17 00:00:00 2001 From: Alexandre Lepetit Date: Tue, 15 May 2018 09:49:56 +0200 Subject: [PATCH 1/3] Adding physicals interfaces description --- views.go | 1 + 1 file changed, 1 insertion(+) diff --git a/views.go b/views.go index a2aefff..62b8dc7 100644 --- a/views.go +++ b/views.go @@ -59,6 +59,7 @@ type PhysicalInterface struct { Name string `xml:"name"` AdminStatus string `xml:"admin-status"` OperStatus string `xml:"oper-status"` + Description string `xml:"description"` LocalIndex int `xml:"local-index"` SNMPIndex int `xml:"snmp-index"` LinkLevelType string `xml:"link-level-type"` From 9e17e1d999ece660c5f1f18ede0947fcdd3118b2 Mon Sep 17 00:00:00 2001 From: Alexandre Lepetit Date: Tue, 15 May 2018 09:51:37 +0200 Subject: [PATCH 2/3] Correcting sample view --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4e54542..157dbfe 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ set security zones security-zone interfaces host-inbound-traffic sys ### Authentication Methods There are two different ways you can authenticate against to device. Standard username/password combination, or use SSH keys. -There is an [AuthMethod][authmethod] struct which defines these methods that you will need to use in your code. Here is an example of +There is an [AuthMethod][authmethod] struct which defines these methods that you will need to use in your code. Here is an example of connecting to a device using only a username and password. ```Go @@ -180,7 +180,7 @@ me a line on [Twitter](https://twitter.com/scottdware). **Example:** View the ARP table on a device ```Go -views, err := jnpr.Views("arp") +views, err := jnpr.View("arp") if err != nil { fmt.Println(err) } From 3eec654a120157c1da0e7815096811acc1753eb0 Mon Sep 17 00:00:00 2001 From: Alexandre Lepetit Date: Tue, 15 May 2018 10:03:20 +0200 Subject: [PATCH 3/3] correction sample view --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 157dbfe..f3f2765 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,7 @@ set security zones security-zone interfaces host-inbound-traffic sys ### Authentication Methods There are two different ways you can authenticate against to device. Standard username/password combination, or use SSH keys. -There is an [AuthMethod][authmethod] struct which defines these methods that you will need to use in your code. Here is an example of -connecting to a device using only a username and password. +There is an [AuthMethod][authmethod] struct which defines these methods that you will need to use in your code. Here is an example of connecting to a device using only a username and password. ```Go auth := &junos.AuthMethod{ @@ -180,7 +179,7 @@ me a line on [Twitter](https://twitter.com/scottdware). **Example:** View the ARP table on a device ```Go -views, err := jnpr.View("arp") +views, err := jnpr.Views("arp") if err != nil { fmt.Println(err) }