summaryrefslogtreecommitdiff
path: root/src/rhctl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rhctl')
-rw-r--r--src/rhctl/conf.go4
-rw-r--r--src/rhctl/main.go1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/rhctl/conf.go b/src/rhctl/conf.go
index 2dfb9ec..47a51b8 100644
--- a/src/rhctl/conf.go
+++ b/src/rhctl/conf.go
@@ -34,6 +34,10 @@ type Config struct {
Device string `toml:"dev"`
Baudrate Baudrate `toml:"baud"`
Timeout Duration `toml:"timeout"`
+ Ports []struct {
+ Name string `toml:"name"`
+ Number uint `toml:"number"`
+ }
}
Servers map[string]struct {
diff --git a/src/rhctl/main.go b/src/rhctl/main.go
index f529265..2aaf7aa 100644
--- a/src/rhctl/main.go
+++ b/src/rhctl/main.go
@@ -76,6 +76,7 @@ func main() {
return
}
rhl.Printf("just started...")
+ rhdl.Printf("configuration: %+v", conf)
sw, err := SwitchInit(conf)
if err != nil {