From caaf3ae63456c09f46ad951e99d572b0e47aa6c5 Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 8 Jun 2017 18:13:11 +0900 Subject: [PATCH] add server --- src/ts/containers/discovery/DiscoveryResult.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ts/containers/discovery/DiscoveryResult.tsx b/src/ts/containers/discovery/DiscoveryResult.tsx index 1631a09..060c7a9 100644 --- a/src/ts/containers/discovery/DiscoveryResult.tsx +++ b/src/ts/containers/discovery/DiscoveryResult.tsx @@ -61,6 +61,15 @@ export class DiscoveryResult extends React.Component { 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 {
- Iface : {this.state.result.zone.iface} + Iface : {this.state.result.zone.iface}
IP : {Utils.int2ip(this.state.result.zone.ip)}/{this.state.result.zone.mask}