Skip to content

Commit

Permalink
Fix network creation
Browse files Browse the repository at this point in the history
Reviewed By: rckclmbr

Differential Revision: D17217483

fbshipit-source-id: cb0a947e6c78250c3e5d8ff2efb9cceae30eafd6
  • Loading branch information
tcirstea authored and facebook-github-bot committed Sep 6, 2019
1 parent ed31982 commit f3eed38
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions nms/fbcnms-packages/fbcnms-platform-server/network/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ const router = express.Router();
// const DEFAULT_CELLULAR_CONFIG: CellularNetworkConfig = {
const DEFAULT_CELLULAR_CONFIG = {
epc: {
cloud_subscriberdb_enabled: false,
default_rule_id: '',
mcc: '001',
mnc: '01',
tac: 1,
lte_auth_amf: 'gAA=',
lte_auth_op: 'EREREREREREREREREREREQ==',
relay_enabled: false,
sub_profiles: {},
},
ran: {
Expand All @@ -42,6 +45,11 @@ const DEFAULT_CELLULAR_CONFIG = {
special_subframe_pattern: 7,
subframe_assignment: 2,
ul_dl_ratio: 1,
tdd_config: {
earfcndl: 44590,
special_subframe_pattern: 7,
subframe_assignment: 2,
},
},
non_eps_service: null,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import Grid from '@material-ui/core/Grid';
import Paper from '@material-ui/core/Paper';
import React, {useState} from 'react';
import TextField from '@material-ui/core/TextField';
import {CELLULAR} from '@fbcnms/types/network';

import axios from 'axios';
import {makeStyles} from '@material-ui/styles';
Expand All @@ -40,7 +41,10 @@ export default function NetworkCreate() {
const onCreate = async () => {
let createResponse;
try {
const payload = {networkID: name, data: {name}};
const payload = {
networkID: name,
data: {name, features: {networkType: CELLULAR}},
};
createResponse = await axios.post('/nms/network/create', payload);
if (!createResponse?.data.success) {
enqueueSnackbar(
Expand Down

0 comments on commit f3eed38

Please sign in to comment.