cloudstack/server/src/com/cloud/api
Rohit Yadav f60f3cec34
router: Fixes #2789 fix proper mark based packet routing across interfaces (#2791)
Previously, the ethernet device index was used as rt_table index and
packet marking id/integer. With eth0 that is sometimes used as link-local
interface, the rt_table index `0` would fail as `0` is already defined
as a catchall (unspecified). The fwmarking on packets on eth0 with 0x0
would also fail. This fixes the routing issues, by adding 100 to the
ethernet device index so the value is a non-zero, for example then the
relationship between rt_table index and ethernet would be like:

100 -> Table_eth0 -> eth0 -> fwmark 100 or 0x64
101 -> Table_eth1 -> eth1 -> fwmark 101 or 0x65
102 -> Table_eth2 -> eth2 -> fwmark 102 or 0x66

This would maintain the legacy design of routing based on packet mark
and appropriate routing table rules per table/ids. This also fixes a
minor NPE issue around listing of snapshots.

This also backports fixes to smoketests from master.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2018-08-08 12:05:42 +05:30
..
auth Bug-ID:CLOUDSTACK-9369 Fixed Ldap regression 2017-04-20 15:25:47 +05:30
dispatch CLOUDSTACK-9361: Centrally handle API validations 2016-05-11 09:40:22 +05:30
doc Added JSON diff output to the ApiXmlDocReader in additon TXT for parsability 2016-09-12 10:08:09 -04:00
query CLOUDSTACK-10276: listVolumes not working when storage UUID is not a UUID (#2639) 2018-05-22 17:02:40 +05:30
response CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-05-11 09:45:19 +05:30
ApiAsyncJobDispatcher.java Revert "Merge pull request #714 from rafaelweingartner/master-lrg-cs-hackday-003" 2015-08-31 11:27:57 +05:30
ApiDBUtils.java CLOUDSTACK-10104: Optimize database transactions in ListDomain API to improve performance (#2282) 2018-01-05 21:51:46 +05:30
ApiDispatcher.java CLOUDSTACK-8816: Project UUID is not showing for some of operations in RabbitMQ. 2015-09-09 14:23:28 +05:30
ApiGsonHelper.java API response: added new field to @Param - RoleType[] authorized() default {}. The field defines who is authorized to see this partciluar reponse field. If not specified, the parameter is returned to everybody 2014-02-20 17:15:43 -08:00
ApiResponseGsonHelper.java CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-05-11 09:45:19 +05:30
ApiResponseHelper.java router: Fixes #2789 fix proper mark based packet routing across interfaces (#2791) 2018-08-08 12:05:42 +05:30
ApiSerializerHelper.java findbugs: fixes for ApiServer, ApiSerializerHelper and 2014-01-28 14:47:06 +01:00
ApiServer.java CLOUDSTACK-10327: Do not invalidate the session when an API command is not available (#2498) 2018-04-24 15:01:19 +02:00
ApiServlet.java CLOUDSTACK-7958: Add configuration for limit to CIDRs for Admin API calls (#2046) 2018-01-04 10:56:30 +05:30
EncodedStringTypeAdapter.java findbugs: fixes for ApiServer, ApiSerializerHelper and 2014-01-28 14:47:06 +01:00
ResponseObjectTypeAdapter.java API response: added new field to @Param - RoleType[] authorized() default {}. The field defines who is authorized to see this partciluar reponse field. If not specified, the parameter is returned to everybody 2014-02-20 17:15:43 -08:00
SerializationContext.java Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
StringMapTypeAdapter.java Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00