Commit bfea4da0 authored by calvinosanc1's avatar calvinosanc1
Browse files

Merge branch 'magma_agw' into 'master'

Charmed Magma AGW packages

See merge request !204
parents 9dc92826 7f34ec7d
Loading
Loading
Loading
Loading
Loading
+72 −0
Original line number Diff line number Diff line
# Charmed Magma

This NS allows you to deploy either the Magma AGW VNF only, or the Magma AGW together with the Magma Orchestrator.
Magma AGW is deployed in a VM with a Native Charm while Magma Orchestrator is deployed in a K8s cluster with a Juju bundle.

## Upload the VNF packages

Following commands should be executed in the following folder: `osm-packages/charm-packages/charmed_magma`

### Magma Access GW VNF Package

```bash
osm nfpkg-create magma_agw_vnf/
```

### Magma Orchestrator VNF Package

```bash
osm nfpkg-create magma_orc_cnf/
```

## Upload the NS package

### Magma Access GW only

```bash
osm nspkg-create magma_agw_ns/
```

### Magma Access GW and Magma Orchestrator together

```bash
osm nspkg-create magma_ns/
```

## Configuration

The configuration file `params.yaml` need to be set in order to deploy the Access GW. This needs to be done no matter if you want to deploy the Access GW only or the Access GW and the Orchestrator.

Here is an example:

```yaml
vld: 
  - name: mgmtnet                                # Id of the virtual-link-desc where the SGI interface is
    vim-network-name: osm-ext                    # Name of the network in the VIM (The network must exists)
    vnfd-connection-point-ref: 
      - member-vnf-index-ref: "vnf1"             # constituent-base-element-id (In the NSD)
        vnfd-connection-point-ref: vnf-mgmt-ext  # constituent-cpd-id (In the NSD)
        ip-address: "172.21.248.153"             # IP address that will be used in the mgmt interface in the VM
additionalParamsForVnf: 
  - member-vnf-index: "vnf1"                     # constituent-base-element-id (In the NSD)
    additionalParams: 
      - sgi_ipv4_address: "172.21.248.153/22"    # IP address and subnet that will be used in the mgmt interface in the VM, the format x.x.x.x/yy
        sgi_interface: ens3                      # Name of the SGI interface in the VM
        sgi_ipv4_gateway: "172.21.248.1"         # GW of the network used for SGI
        s1_interface: ens4                       # Name of the S1 interface in the VM
```

## Instantiation

### Magma Access GW only


```bash
osm ns-create --ns_name magma-agw-ns --nsd_name magma-agw-ns --vim_account <VIM_ACCOUNT> --config_file params.yaml
```

### Magma Access GW and Magma Orchestrator together

```bash
osm ns-create --ns_name magma-ns --nsd_name magma-ns --vim_account <VIM_ACCOUNT> --config_file params.yaml
```
 No newline at end of file
+54.6 KiB
Loading image diff...
+26 −0
Original line number Diff line number Diff line
nsd:
  nsd:
  - description: Deployment of Magma AGW connected by datanet and mgmtnet VLs
    df:
    - id: default-df
      vnf-profile:
      - id: magma-agw
        virtual-link-connectivity:
        - constituent-cpd-id:
          - constituent-base-element-id: magma-agw
            constituent-cpd-id: vnf-mgmt-ext
          virtual-link-profile-id: mgmtnet
        - constituent-cpd-id:
          - constituent-base-element-id: magma-agw
            constituent-cpd-id: vnf-data-ext
          virtual-link-profile-id: datanet
        vnfd-id: magma-agw-vnf
    id: magma-agw-ns
    name: magma-agw-ns
    version: 1.0
    virtual-link-desc:
    - id: mgmtnet
      mgmt-network: true
    - id: datanet
    vnfd-id:
    - magma-agw-vnf
+54.6 KiB
Loading image diff...
+65 −0
Original line number Diff line number Diff line
nsd:
  nsd:
  - description: Deployment of Magma AGW and Magma ORC
    df:
    - id: default-df
      vnf-profile:
      - id: magma-orc
        virtual-link-connectivity:
        - constituent-cpd-id:
          - constituent-base-element-id: magma-orc
            constituent-cpd-id: mgmtnet-ext
          virtual-link-profile-id: mgmtnet
        vnfd-id: magma_orc_cnf
      - id: magma-agw
        virtual-link-connectivity:
        - constituent-cpd-id:
          - constituent-base-element-id: magma-agw
            constituent-cpd-id: vnf-mgmt-ext
          virtual-link-profile-id: mgmtnet
        - constituent-cpd-id:
          - constituent-base-element-id: magma-agw
            constituent-cpd-id: vnf-data-ext
          virtual-link-profile-id: datanet
        vnfd-id: magma-agw-vnf
      - id: magma-agw2
        virtual-link-connectivity:
        - constituent-cpd-id:
          - constituent-base-element-id: magma-agw2
            constituent-cpd-id: vnf-mgmt-ext
          virtual-link-profile-id: mgmtnet
        - constituent-cpd-id:
          - constituent-base-element-id: magma-agw2
            constituent-cpd-id: vnf-data-ext
          virtual-link-profile-id: datanet
        vnfd-id: magma-agw-vnf
    id: magma-ns
    name: magma-ns
    version: 1.0
    virtual-link-desc:
    - id: mgmtnet
      mgmt-network: true
    - id: datanet
    vnfd-id:
    - magma-agw-vnf
    - magma_orc_cnf
    ns-configuration:
      relation:
        - name: relation
          provider:
            vnf-profile-id: magma-orc
            kdu-resource-profile-id: kdu-magma-orc-provides
            endpoint: orchestrator
          requirer:
            vnf-profile-id: magma-agw
            vdu-profile-id: mgmtVM
            endpoint: magma-orchestrator
        - name: relation2
          provider:
            vnf-profile-id: magma-orc
            kdu-resource-profile-id: kdu-magma-orc-provides
            endpoint: orchestrator
          requirer:
            vnf-profile-id: magma-agw2
            vdu-profile-id: mgmtVM
            endpoint: magma-orchestrator
 No newline at end of file
Loading