-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathstructs.go
More file actions
52 lines (44 loc) · 843 Bytes
/
Copy pathstructs.go
File metadata and controls
52 lines (44 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package main
import (
"net"
)
type Routers map[string]*Router
type Router struct {
Name string
Type string
Organization string
Priority int
Tier int
Location string
DNS []string
Internal bool
Configuration *RouterConfiguration
Peers []Peer
}
type RouterConfiguration struct {
FQDN string
Loopback *RouterInterface
ASN int
RouterID *net.IP
PasswordLogin string
PasswordEnable string
}
type RouterInterface struct {
Addresses []net.IP
Routes []RouterInterfaceRoute
}
type RouterInterfaceRoute struct {
Subnet *net.IPNet
Gateway *net.IP
}
type Peer struct {
Name string
Interface string
MAC string
Remote string
Speed int
Delay int
Routes []RouterInterfaceRoute
ASN int
Weight int
}