frontend: handle protocol names starting with number
This commit is contained in:
@@ -18,13 +18,13 @@ import (
|
|||||||
|
|
||||||
var primitiveMap = map[string]string{
|
var primitiveMap = map[string]string{
|
||||||
"summary": "show protocols",
|
"summary": "show protocols",
|
||||||
"detail": "show protocols all %s",
|
"detail": "show protocols all \"%s\"",
|
||||||
"route_from_protocol": "show route protocol %s",
|
"route_from_protocol": "show route protocol \"%s\"",
|
||||||
"route_from_protocol_all": "show route protocol %s all",
|
"route_from_protocol_all": "show route protocol \"%s\" all",
|
||||||
"route_from_protocol_primary": "show route protocol %s primary",
|
"route_from_protocol_primary": "show route protocol \"%s\" primary",
|
||||||
"route_from_protocol_all_primary": "show route protocol %s all primary",
|
"route_from_protocol_all_primary": "show route protocol \"%s\" all primary",
|
||||||
"route_filtered_from_protocol": "show route filtered protocol %s",
|
"route_filtered_from_protocol": "show route filtered protocol \"%s\"",
|
||||||
"route_filtered_from_protocol_all": "show route filtered protocol %s all",
|
"route_filtered_from_protocol_all": "show route filtered protocol \"%s\" all",
|
||||||
"route_from_origin": "show route where bgp_path.last = %s",
|
"route_from_origin": "show route where bgp_path.last = %s",
|
||||||
"route_from_origin_all": "show route where bgp_path.last = %s all",
|
"route_from_origin_all": "show route where bgp_path.last = %s all",
|
||||||
"route_from_origin_primary": "show route where bgp_path.last = %s primary",
|
"route_from_origin_primary": "show route where bgp_path.last = %s primary",
|
||||||
|
|||||||
Reference in New Issue
Block a user