[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Debian JP master SVN www commits (rev.1083)
=======================================================
Repository: /org/svn.debian.or.jp/repos
Revision: 1083
Commiter: yasu
Date: 2010-09-26 16:05:18 +0900 (日, 26 9月 2010)
=======================================================
Log:
ASN
=======================================================
Changed:
U cdn/trunk/ChangeLog
U cdn/trunk/gae-surrogates.rb
Modified: cdn/trunk/ChangeLog
===================================================================
--- cdn/trunk/ChangeLog 2010-09-23 11:25:33 UTC (rev 1082)
+++ cdn/trunk/ChangeLog 2010-09-26 07:05:18 UTC (rev 1083)
@@ -1,3 +1,7 @@
+2010-09-26 ARAKI Yasuhiro <ar@debian.org>
+
+ * gae-surrogates.rb: ASNum.
+
2009-11-28 Kenshi Muto <kmuto@debian.org>
* check-surrogates.rb: fallback JPN then default when name isn't found
Modified: cdn/trunk/gae-surrogates.rb
===================================================================
--- cdn/trunk/gae-surrogates.rb 2010-09-23 11:25:33 UTC (rev 1082)
+++ cdn/trunk/gae-surrogates.rb 2010-09-26 07:05:18 UTC (rev 1083)
@@ -84,6 +84,20 @@
end
addr[targetnet][hostname].push([hs['ip'].split('.').map{|x| x.to_i}, hs['preference']])
+
+ targetasnum = 'AS' + hs['targetasnum']
+
+ if addr[targetasnum]
+ else
+ addr[targetasnum] = Hash.new
+ end
+
+ if addr[targetasnum][hostname]
+ else
+ addr[targetasnum][hostname] = Array.new
+ end
+ addr[targetasnum][hostname].push([hs['ip'].split('.').map{|x| x.to_i}, hs['preference']])
+
end
addrfile = File.open("addr", 'w')