X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=blobdiff_plain;f=PLC%2FSlices.py;h=e5a51ebed58cf195c4293a4c06c8a54ae08743e3;hp=7226857ed964bd3146740b663771dd77ce8f781e;hb=13901cd4465288b634103c1997a5653500f2b5cc;hpb=e350782eefb74b58045ec690228c494d3526b07a diff --git a/PLC/Slices.py b/PLC/Slices.py index 7226857..e5a51eb 100644 --- a/PLC/Slices.py +++ b/PLC/Slices.py @@ -60,7 +60,7 @@ class Slice(Row): # 2. Begins with login_base (letters or numbers). # 3. Then single underscore after login_base. # 4. Then letters, numbers, or underscores. - good_name = r'^[a-z0-9]+_[a-zA-Z0-9_]+$' + good_name = r'^[a-z0-9\.]+_[a-zA-Z0-9_\.]+$' if not name or \ not re.match(good_name, name): raise PLCInvalidArgument, "Invalid slice name"