Re: [Ryu-devel] Real dpids from REST API?

2015-12-15 Thread Yusuke Iwase
Hi, "ab:cd:11:22:33:41:52:68" looks like a ":" separated hexadecimal number. On the other hand, ofctl_rest.py returns Datapath ID as a decimal number. "ab:cd:11:22:33:41:52:68" means ... abcd112233415268 ... hexadecimal 12379569789297840744 ... decimal <-- ofctl_rest.py returns this So, if o

Re: [Ryu-devel] Real dpids from REST API?

2015-12-15 Thread Sergio Andrés Rivera Polanco
That works fine with mininet dpids ... What would happen with arbritary datapaths like say ab:cd:11:22:33:41:52:68. Will they receive a random number??? On Tue, Dec 15, 2015 at 9:52 PM, Yusuke Iwase wrote: > Hi, > > Currently, ofctl_rest.py does not provide the way to display the datapath > IDs

Re: [Ryu-devel] Real dpids from REST API?

2015-12-15 Thread Yusuke Iwase
Hi, Currently, ofctl_rest.py does not provide the way to display the datapath IDs like 00:00:00:00:00:00:00:01. But you can calculate it easily as followings. e.g.) >>> import re >>> dpid = 1 >>> ":".join(re.findall(r'..?', '%016x' % dpid)) '00:00:00:00:00:00:00:01' Thanks, Iwase On 2015年12月0