Last active
October 5, 2016 23:23
-
-
Save teone/717d595855307852c48d0b089dbf7547 to your computer and use it in GitHub Desktop.
OrangeBox tweaks
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
include ../common/Makedefs | |
CONFIG_DIR:=$(shell pwd) | |
DOCKER_COMPOSE_YML=./onboarding-docker-compose/docker-compose.yml | |
BOOTSTRAP_YML=./docker-compose-bootstrap.yml | |
DOCKER_PROJECT=mcord | |
BOOTSTRAP_PROJECT=mcordbs | |
XOS_BOOTSTRAP_PORT=81 | |
XOS_UI_PORT=80 | |
ADMIN_USERNAME=padmin@vicci.org | |
ADMIN_PASSWORD=letmein | |
RUN_TOSCA_BOOTSTRAP=python ../common/run_tosca.py $(XOS_BOOTSTRAP_PORT) $(ADMIN_USERNAME) $(ADMIN_PASSWORD) | |
RUN_TOSCA=python ../common/run_tosca.py $(XOS_UI_PORT) $(ADMIN_USERNAME) $(ADMIN_PASSWORD) | |
node_label: | |
@echo "[ORANGE BOX CONFIG]" | |
$(RUN_TOSCA) node_label.yaml | |
subscriber: | |
@echo "[ORANGE BOX SUBSCRIBER]" | |
$(RUN_TOSCA) orange-box-subscriber.yaml | |
# Create the node if not exist (for testing) | |
node: | |
@echo "[CREATING TEST NODE]" | |
$(RUN_TOSCA) node.yaml |
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
# Testing ONLY | |
tosca_definitions_version: tosca_simple_yaml_1_0 | |
description: Just enough Tosca to get the vSG slice running on the CORD POD | |
imports: | |
- custom_types/xos.yaml | |
topology_template: | |
node_templates: | |
MyDeployment: | |
type: tosca.nodes.Deployment | |
properties: | |
no-update: true | |
no-delete: true | |
no-create: true | |
mysite: | |
type: tosca.nodes.Site | |
properties: | |
no-update: true | |
no-delete: true | |
no-create: true | |
node#node01ob92: | |
type: tosca.nodes.Node | |
requirements: | |
- site: | |
node: mysite | |
relationship: tosca.relationships.MemberOfSite | |
- deployment: | |
node: MyDeployment | |
relationship: tosca.relationships.MemberOfDeployment |
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
# set label on node and vsg service | |
tosca_definitions_version: tosca_simple_yaml_1_0 | |
description: Just enough Tosca to get the vSG slice running on the CORD POD | |
imports: | |
- custom_types/xos.yaml | |
topology_template: | |
node_templates: | |
MyDeployment: | |
type: tosca.nodes.Deployment | |
properties: | |
no-update: true | |
no-delete: true | |
no-create: true | |
mysite: | |
type: tosca.nodes.Site | |
properties: | |
no-update: true | |
no-delete: true | |
no-create: true | |
label_vsg: | |
type: tosca.nodes.NodeLabel | |
# properties: | |
# no-update: true | |
# no-delete: true | |
# no-create: true | |
service#vsg: | |
type: tosca.nodes.VSGService | |
properties: | |
node_label: label_vsg | |
node#node01ob92: | |
type: tosca.nodes.Node | |
properties: | |
no-delete: true | |
no-create: true | |
requirements: | |
- site: | |
node: mysite | |
relationship: tosca.relationships.MemberOfSite | |
- deployment: | |
node: MyDeployment | |
relationship: tosca.relationships.MemberOfDeployment | |
- label: | |
node: label_vsg | |
relationship: tosca.relationships.HasLabel | |
## Enable Diagnostic Dashboard | |
# You can use this recipe to load the dashboard in the system: | |
Diagnostic: | |
type: tosca.nodes.DashboardView | |
properties: | |
no-delete: true | |
no-update: true | |
no-create: true | |
Truckroll: | |
type: tosca.nodes.DashboardView | |
properties: | |
no-delete: true | |
no-update: true | |
no-create: true | |
# And this recipe to activate the dashboard for a user: | |
padmin@vicci.org: | |
type: tosca.nodes.User | |
properties: | |
no-create: true | |
no-delete: true | |
requirements: | |
- truckroll_dashboard: | |
node: Truckroll | |
relationship: tosca.relationships.UsesDashboard | |
- diagnostic_dashboard: | |
node: Diagnostic | |
relationship: tosca.relationships.UsesDashboard |
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
tosca_definitions_version: tosca_simple_yaml_1_0 | |
description: Create a Subscriber targeted for the Orange Box | |
imports: | |
- custom_types/xos.yaml | |
topology_template: | |
node_templates: | |
service#volt: | |
type: tosca.nodes.VOLTService | |
properties: | |
no-delete: true | |
no-create: true | |
no-update: true | |
mysite: | |
type: tosca.nodes.Site | |
properties: | |
no-delete: true | |
no-create: true | |
no-update: true | |
# CORD Slices | |
mysite_vsg: | |
type: tosca.nodes.Slice | |
properties: | |
no-delete: true | |
no-create: true | |
no-update: true | |
# Let's add a user who can be administrator of the household | |
johndoe@myhouse.com: | |
type: tosca.nodes.User | |
properties: | |
password: letmein | |
firstname: john | |
lastname: doe | |
requirements: | |
- site: | |
node: mysite | |
relationship: tosca.relationships.MemberOfSite | |
- dependency: | |
node: mysite_vsg | |
relationship: tosca.relationships.DependsOn | |
# A subscriber | |
My House: | |
type: tosca.nodes.CORDSubscriber | |
properties: | |
service_specific_id: 123 | |
firewall_enable: false | |
cdn_enable: false | |
url_filter_enable: false | |
url_filter_level: R | |
requirements: | |
- house_admin: | |
node: johndoe@myhouse.com | |
relationship: tosca.relationships.AdminPrivilege | |
Demo Laptop: | |
type: tosca.nodes.CORDUser | |
properties: | |
mac: 01:02:03:04:05:06 | |
level: PG_13 | |
requirements: | |
- household: | |
node: My House | |
relationship: tosca.relationships.SubscriberDevice | |
My Volt: | |
type: tosca.nodes.VOLTTenant | |
properties: | |
service_specific_id: 123 | |
s_tag: 3 | |
c_tag: 3 | |
requirements: | |
- provider_service: | |
node: service#volt | |
relationship: tosca.relationships.MemberOfService | |
- subscriber: | |
node: My House | |
relationship: tosca.relationships.BelongsToSubscriber | |
- dependency: | |
node: mysite_vsg | |
relationship: tosca.relationships.DependsOn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment