-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to integrate with ACI 4.1 and new packages.
- Loading branch information
1 parent
eeae4cf
commit 220ca18
Showing
6 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
chef/data_bags/crowbar/migrate/neutron/308_add_opflex_access_integration_bridge.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
def upgrade(tattr, tdep, attr, dep) | ||
unless attr["apic"]["opflex"].key?("integration_bridge") | ||
attr["apic"]["opflex"]["integration_bridge"] = tattr["apic"]["opflex"]["integration_bridge"] | ||
end | ||
unless attr["apic"]["opflex"].key?("access_bridge") | ||
attr["apic"]["opflex"]["access_bridge"] = tattr["apic"]["opflex"]["access_bridge"] | ||
end | ||
|
||
return attr, dep | ||
end | ||
|
||
def downgrade(tattr, tdep, attr, dep) | ||
unless tattr["apic"]["opflex"].key?("integration_bridge") | ||
attr["apic"]["opflex"].delete("integration_bridge") if attr.key?("integration_bridge") | ||
end | ||
unless tattr["apic"]["opflex"].key?("access_bridge") | ||
attr["apic"]["opflex"].delete("access_bridge") if attr.key?("access_bridge") | ||
end | ||
|
||
return attr, dep | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters