ShaneMcC / vyatta-tinc

[ARCHIVED] Vyatta package to allow configuring tinc vpn
GNU General Public License v2.0
17 stars 2 forks source link

generatekeys seems to be broken #7

Open nvx opened 8 years ago

nvx commented 8 years ago

If you commit with generatekeys set to true while not at the top (ie, if you're in say "edit protocols tinc test" level) you get the following error:

nvx@ERL# commit
[ protocols tinc test ]
The specified configuration node is not valid
Set failed
The specified configuration node is not valid
Set failed

[edit protocols tinc test]
nvx@ERL#```

Committing from the top level results in an unhelpful error "Aborted" and the config session is left quite broken (running "compare" says no changes while running "show" shows a every config option as pending removal):

``` [edit]
nvx@ERL# commit
Aborted
[edit]
nvx@ERL# compare
No changes between working and active configurations
[edit]
nvx@ERL# show
-interfaces {
-    ethernet eth0 {
-        address 10.190.38.253/24
-        description LAN
-        duplex auto
-        mtu 1500
-        speed auto
-    }
-    ethernet eth1 {
-        duplex auto
-        speed auto
-    }
-    ethernet eth2 {
-        address 10.190.39.144/31
-        description "ERL - ERXAS"
-        duplex auto
-        speed auto
-    }
-    loopback lo {
-        address 10.190.39.152/32
-    }
-}

Tested on EdgeOS v1.8.5alpha1 (latest alpha).

ShaneMcC commented 8 years ago

Ah, that is annoying! I only ever set config from the top so hadn't encountered this. I'll take a look, thanks :)