region: network details show routes

This commit is contained in:
Zexi Li
2018-12-11 11:44:35 +08:00
parent dffb0737b4
commit fbbf841494
+4
View File
@@ -856,6 +856,10 @@ func (self *SNetwork) getMoreDetails(extra *jsonutils.JSONDict) *jsonutils.JSOND
extra.Add(jsonutils.NewString(vpc.GetExternalId()), "vpc_external_id")
}
}
routes := self.GetRoutes()
if len(routes) > 0 {
extra.Add(jsonutils.Marshal(routes), "routes")
}
return extra
}