WebUI: PGW IPv4 Address is added in APN configuration

This commit is contained in:
Sukchan Lee 2017-08-28 16:56:20 +09:00
parent 0757cdedab
commit beca6af7ff
4 changed files with 26 additions and 1 deletions

View file

@ -57,6 +57,9 @@ const Subscriber = new Schema({
downlink: Schema.Types.Long,
uplink: Schema.Types.Long
},
pgw: {
ipv4: String
},
pcc_rule: [{
flow: [{
direction: Number,

View file

@ -138,6 +138,22 @@ const schema = {
},
}
},
"pgw": {
"type": "object",
"title": "",
"properties": {
"ipv4": {
"type": "string",
"title": "PGW IPv4 Address*",
"required": true,
"pattern": "^[0-9\\.]+$",
"messages": {
"pattern": "Invalid IPv4 Address Format"
},
"default": "10.1.35.218",
},
}
},
"pcc_rule": {
"type": "array",
"title": "PCC Rules",

View file

@ -152,7 +152,7 @@ const Pdn = styled.div`
margin: 4px;
}
.large_data {
width: 160px;
width: 140px;
font-size: 12px;
margin: 4px;
}
@ -249,6 +249,7 @@ const View = ({ visible, disableOnClickOutside, subscriber, onEdit, onDelete, on
<div className="medium_data">Vulnerablility</div>
<div className="large_data">MBR DL/UL(Kbps)</div>
<div className="large_data">GBR DL/UL(Kbps)</div>
<div className="medium_data">PGW IP</div>
</div>
{pdns.map(pdn =>
<div key={pdn.apn}>
@ -268,6 +269,8 @@ const View = ({ visible, disableOnClickOutside, subscriber, onEdit, onDelete, on
{pdn.ambr['uplink'] === undefined ? "unlimited" : pdn.ambr.uplink}
</div>
}
<div className="large_data"></div>
<div className="small_data">{pdn.pgw.ipv4}</div>
</div>
{pdn['pcc_rule'] !== undefined &&
pdn.pcc_rule.map((pcc_rule, index) =>

View file

@ -34,6 +34,9 @@ const formData = {
"pre_emption_vulnerability": 1
}
},
"pgw": {
"ipv4": "10.1.35.218",
}
}
]
}