add server

This commit is contained in:
snoop 2017-06-08 18:13:11 +09:00
parent c5015c8bb7
commit caaf3ae634

View File

@ -61,6 +61,15 @@ export class DiscoveryResult extends React.Component<any, any> {
console.log(target); console.log(target);
} }
let os: OFRest = new OFRest("Target", "CreateAll", this.list);
os.Call().then(function (res) {
return res.json();
}).then(function (res) {
console.log(res);
}).catch(function (err) {
console.log(err);
});
} }
@ -137,7 +146,7 @@ export class DiscoveryResult extends React.Component<any, any> {
</div> </div>
<div> <div>
Iface : {this.state.result.zone.iface} Iface : {this.state.result.zone.iface}
</div> </div>
<div> <div>
IP : {Utils.int2ip(this.state.result.zone.ip)}/{this.state.result.zone.mask} IP : {Utils.int2ip(this.state.result.zone.ip)}/{this.state.result.zone.mask}