Page MenuHomeVyOS Platform

Unable to load the config file when community attribute define with "replace"
Closed, ResolvedPublicBUG

Description

Description:
In a newly deployed 1.4.2 image , when loaded with a configuration file where community attribute is set with replace value, commit fails. Attached the full config for reference.
It sends a empty value between quotes

vyos@vyos# load /tmp/new_config
Loading configuration from '/tmp/newconf'
Load complete. Use 'commit' to make changes effective.
[edit]
vyos@vyos# compare
......
+     route-map test01 {
+         rule 10 {
+             action "deny"
+             match {
+                 ip {
+                     address {
+                         prefix-list "net01"
+                     }
+                 }
+             }
+         }
+         rule 30 {
+             action "permit"
+             set {
+                 community {
+                     replace ""
+                 }
+             }
+         }

vyos@vyos# commit
[ policy route-map test01 rule 30 set community replace  ]
Invalid community format



[ policy route-map test01 rule 30 set community replace  ]
Invalid value

[[policy]] failed
Commit failed
[edit]

The same configuration loads from an old config.boot file from the device if added and modified in a previous change.

Details

Version
1.4.2
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Related Objects

Mentioned In
1.4.3

Event Timeline

SrividyaA triaged this task as High priority.
SrividyaA updated the task description. (Show Details)
a.apostoliuk claimed this task.
a.apostoliuk moved this task from Backlog to Finished on the VyOS 1.4 Sagitta (1.4.3) board.
a.apostoliuk subscribed.

The file "new_config" did not contain a footer for proper migration.