f-50: lab: scénarios E5, configuration de l'agent par hyperviseur, release 0.2.0rc003 #50
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
0659dc69a5
commit
5728fdd33c
25 changed files with 760 additions and 27 deletions
|
|
@ -50,6 +50,7 @@ type Node struct {
|
|||
Loopback string
|
||||
FRR string
|
||||
Release string
|
||||
Agent string
|
||||
}
|
||||
|
||||
type fileImage struct {
|
||||
|
|
@ -74,6 +75,7 @@ type fileNode struct {
|
|||
Loopback string `yaml:"loopback"`
|
||||
FRR string `yaml:"frr"`
|
||||
Release string `yaml:"release"`
|
||||
Agent string `yaml:"agent"`
|
||||
}
|
||||
|
||||
type file struct {
|
||||
|
|
@ -96,6 +98,9 @@ func Load(path string) (*Topology, error) {
|
|||
if n.FRR != "" && !filepath.IsAbs(n.FRR) {
|
||||
t.Nodes[i].FRR = filepath.Join(filepath.Dir(path), n.FRR)
|
||||
}
|
||||
if n.Agent != "" && !filepath.IsAbs(n.Agent) {
|
||||
t.Nodes[i].Agent = filepath.Join(filepath.Dir(path), n.Agent)
|
||||
}
|
||||
}
|
||||
return t, nil
|
||||
}
|
||||
|
|
@ -144,6 +149,7 @@ func Parse(data []byte) (*Topology, error) {
|
|||
Loopback: n.Loopback,
|
||||
FRR: n.FRR,
|
||||
Release: n.Release,
|
||||
Agent: n.Agent,
|
||||
})
|
||||
}
|
||||
return t, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue