You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

# Homing Specification Version
homing_template_version: 2017-10-10

# Runtime order Parameters
parameters:
  service_name: Residential vCPE
  service_id: some_id
  customer_lat: 32.897480
  customer_long: -97.040443

# List of geographical locations
locations:
  customer_loc:
    latitude: {get_param: customer_lat}
    longitude: {get_param: customer_long}

# List of VNFs (demands) to be homed
demands:
  vGMuxInfra:
  - inventory_provider: aai
    inventory_type: service
    service_type: vG_Mux
    attributes:
      customer_id: some_company
  vG:
  - inventory_provider: aai
    inventory_type: service
    service_type: vG
    attributes:
      customer_id: some_company
  - inventory_provider: aai
    inventory_type: cloud

# List of homing policies (constraints)
constraints:
    # distance constraint
    - constraint_vgmux_customer:
      	type: distance_to_location
        demands: [vGMuxInfra]
        properties:
        	distance: < 100 km
          location: customer_loc
    # cloud region co-location constraint
    - colocation:
    		type: zone
        demands: [vGMuxInfra, vG]
        properties:
        	qualifier: same
          category: region
    # platform capability constraint
    - numa_cpu_pin_capabilities:
    		type: attribute
        demands: [vG]
        properties:
        	evaluate:
            vcpu_pinning: True
            numa_topology: numa_spanning
    # cloud provider constraint
    - cloud_version_capabilities:
    		type: attribute
        demands: [vGMuxInfra]
        properties:
        	evaluate:
          	cloud_version: 1.11.84
            cloud_provider: AWS

# Objective function to minimize
optimization:
  minimize:
    sum:
    - {distance_between: [customer_loc, vGMuxInfra]}
    - {distance_between: [customer_loc, vG]}
  • No labels