From 9560d26a8fb726ab100e7978a64942291e53a731 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 8 Apr 2021 17:16:22 +0200 Subject: xml: route-map: add missing constraints Port over the regex used in the old node.def code-base and make this limitation also live on the new CLI interface. --- interface-definitions/include/route-map.xml.i | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/interface-definitions/include/route-map.xml.i b/interface-definitions/include/route-map.xml.i index 5a1c137b9..edbe76892 100644 --- a/interface-definitions/include/route-map.xml.i +++ b/interface-definitions/include/route-map.xml.i @@ -1,14 +1,18 @@ - Route map reference - - txt - Route map reference - + Specify route-map name to use policy route-map + + txt + Route map name + + + ^[-a-zA-Z0-9.]+$ + + Route-map name can only contain alpha-numeric letters and a hyphen -- cgit v1.2.3