Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vladimir
noc
Commits
7be7f306
Commit
7be7f306
authored
Jul 01, 2022
by
Andrey Vertiprahov
Browse files
Fix typo.
parent
16b30ba3
Changes
1
Hide whitespace changes
Inline
Side-by-side
vc/migrations/0028_create_default_vlan_profile.py
View file @
7be7f306
...
...
@@ -17,13 +17,15 @@ class Migration(BaseMigration):
self
.
mongo_db
[
"vlanprofiles"
].
update_one
(
{
"name"
:
"default"
},
{
# "_id": ObjectId("61bffba63adaa22083f2abfc"),
"name"
:
"default"
,
"description"
:
"Default VLAN Profile"
,
"workflow"
:
ObjectId
(
"5a01d980b6f529000100d37a"
),
"labels"
:
[],
"effective_labels"
:
[],
"bi_id"
:
int64
.
Int64
(
7743152101335604792
),
"$set"
:
{
# "_id": ObjectId("61bffba63adaa22083f2abfc"),
"name"
:
"default"
,
"description"
:
"Default VLAN Profile"
,
"workflow"
:
ObjectId
(
"5a01d980b6f529000100d37a"
),
"labels"
:
[],
"effective_labels"
:
[],
"bi_id"
:
int64
.
Int64
(
7743152101335604792
),
}
},
upsert
=
True
,
)
...
...
@@ -31,15 +33,17 @@ class Migration(BaseMigration):
self
.
mongo_db
[
"l2domainprofiles"
].
update_one
(
{
"name"
:
"default"
},
{
# "_id": ObjectId("61bee6f45c42c21338453613"),
"name"
:
"default"
,
"description"
:
"Default L2Domain Profile"
,
"workflow"
:
ObjectId
(
"5a01d980b6f529000100d37a"
),
"pools"
:
[],
"labels"
:
[],
"effective_labels"
:
[],
"bi_id"
:
int64
.
Int64
(
1009096612210647130
),
"vlan_discovery_policy"
:
"E"
,
"$set"
:
{
# "_id": ObjectId("61bee6f45c42c21338453613"),
"name"
:
"default"
,
"description"
:
"Default L2Domain Profile"
,
"workflow"
:
ObjectId
(
"5a01d980b6f529000100d37a"
),
"pools"
:
[],
"labels"
:
[],
"effective_labels"
:
[],
"bi_id"
:
int64
.
Int64
(
1009096612210647130
),
"vlan_discovery_policy"
:
"E"
,
}
},
upsert
=
True
,
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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