Page MenuHomeVyOS Platform

rpki: AttributeError: 'Config' object has no attribute 'return__value'
Closed, ResolvedPublicBUG

Description

vyos@vyos# show protocols rpki
+cache foo {
+    address 1.1.1.1
+    port 80
+    ssh {
+        username foo
+    }
+}
+initial-synchronization-timeout 50
+polling-period 400
+preference 100
+timeout 900
[edit]
[ protocols rpki initial-synchronization-timeout 50 ]
This config option is deprecated, and is scheduled for removal.
This functionality has also already been removed because it caused bugs and was pointless

[ protocols rpki timeout 900 ]
This config option is deprecated, and is scheduled for removal.
This functionality has also already been removed because it caused bugs and was pointless

[ protocols rpki ]
Stopping RPKI
Traceback (most recent call last):
  File "/opt/vyatta/sbin/vyos-update-rpki-cache.py", line 79, in <module>
    create_cache(config, cache)
  File "/opt/vyatta/sbin/vyos-update-rpki-cache.py", line 21, in create_cache
    new_privkey = c.return__value(base_path + "cache {0} ssh private-key-file".format(cache))
AttributeError: 'Config' object has no attribute 'return__value'

Details

Difficulty level
Easy (less than an hour)
Version
1.2.6-S1
Why the issue appeared?
Implementation mistake
Is it a breaking change?
Perfectly compatible

Event Timeline

c-po triaged this task as Urgent! priority.Jan 25 2021, 6:01 PM
c-po created this task.
c-po claimed this task.
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.
c-po moved this task from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.7) board.