Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
750c94f5
Commit
750c94f5
authored
Nov 26, 2012
by
Leigh B Stoller
Browse files
Allow "@" in elabinelab attribute values.
parent
24497596
Changes
3
Hide whitespace changes
Inline
Side-by-side
sql/database-fill.sql
View file @
750c94f5
...
...
@@ -1177,7 +1177,7 @@ REPLACE INTO table_regex VALUES ('virt_lans','implemented_by_link','text','redir
REPLACE
INTO
table_regex
VALUES
(
'elabinelab_attributes'
,
'role'
,
'text'
,
'regex'
,
'^(boss|router|ops|fs|node)$'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'elabinelab_attributes'
,
'attrkey'
,
'text'
,
'regex'
,
'^[-
\\
w
\\
.]+$'
,
1
,
32
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'elabinelab_attributes'
,
'attrvalue'
,
'text'
,
'regex'
,
'^[-
\\
w
\\
.
\\
+,
\\
s
\\
/:]+$'
,
0
,
255
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'elabinelab_attributes'
,
'attrvalue'
,
'text'
,
'regex'
,
'^[-
\\
w
\\
.
\\
+,
\\
s
\\
/:
\\
@
]+$'
,
0
,
255
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'elabinelab_attributes'
,
'ordering'
,
'int'
,
'redirect'
,
'default:tinyint'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'images'
,
'auth_key'
,
'text'
,
'regex'
,
'^[0-9a-fA-F,]+$'
,
0
,
0
,
NULL
);
...
...
sql/updates/4/319
0 → 100644
View file @
750c94f5
#
# Minor change to elabinelab attributes
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('elabinelab_attributes','attrvalue','text','regex', ".
" '^[-\\\\w\\\\.\\\\+,\\\\s\\\\/:\\\\@]+\$',0,255,NULL)");
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
tbsetup/ns2ir/tb_compat.tcl.in
View file @
750c94f5
...
...
@@ -155,7 +155,7 @@ namespace eval TBCOMPAT {
set elabinelab_attributes
{}
variable EINEROLE
{
^
(
all|boss|ops|fs|router|node
)
$
}
variable EINEKEY
{
^
([
-
\w\.
]
+
)
$
}
variable EINEVALUE
{
^
([
-
\w\.\+\,\s\/
:
]
+
)
$
}
variable EINEVALUE
{
^
([
-
\w\.\+\,\s\/
:
\@
]
+
)
$
}
variable EINEORDER
{
^
\d
+$
}
# virt blobs stuff
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment