forked from apache/cloudstack
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58919dc
commit caef7ee
Showing
4 changed files
with
129 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
core/src/com/cloud/agent/resource/virtualnetwork/model/StaticRoute.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http:https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
// | ||
|
||
package com.cloud.agent.resource.virtualnetwork.model; | ||
|
||
public class StaticRoute { | ||
private boolean revoke; | ||
private String ipAddress; | ||
private String gateway; | ||
private String network; | ||
|
||
public StaticRoute() { | ||
// Empty constructor for (de)serialization | ||
} | ||
|
||
public StaticRoute(boolean revoke, String ipAddress, String gateway, String network) { | ||
super(); | ||
this.revoke = revoke; | ||
this.ipAddress = ipAddress; | ||
this.gateway = gateway; | ||
this.network = network; | ||
} | ||
|
||
public boolean isRevoke() { | ||
return revoke; | ||
} | ||
|
||
public void setRevoke(boolean revoke) { | ||
this.revoke = revoke; | ||
} | ||
|
||
public String getIpAddress() { | ||
return ipAddress; | ||
} | ||
|
||
public void setIpAddress(String ipAddress) { | ||
this.ipAddress = ipAddress; | ||
} | ||
|
||
public String getGateway() { | ||
return gateway; | ||
} | ||
|
||
public void setGateway(String gateway) { | ||
this.gateway = gateway; | ||
} | ||
|
||
public String getNetwork() { | ||
return network; | ||
} | ||
|
||
public void setNetwork(String network) { | ||
this.network = network; | ||
} | ||
|
||
} |
44 changes: 44 additions & 0 deletions
44
core/src/com/cloud/agent/resource/virtualnetwork/model/StaticRoutes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http:https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
// | ||
|
||
package com.cloud.agent.resource.virtualnetwork.model; | ||
|
||
import java.util.List; | ||
|
||
public class StaticRoutes extends ConfigBase { | ||
private List<StaticRoute> routes; | ||
|
||
public StaticRoutes() { | ||
super(ConfigBase.STATIC_ROUTES); | ||
} | ||
|
||
public StaticRoutes(List<StaticRoute> routes) { | ||
super(ConfigBase.STATIC_ROUTES); | ||
this.routes = routes; | ||
} | ||
|
||
public List<StaticRoute> getRoutes() { | ||
return routes; | ||
} | ||
|
||
public void setRoutes(List<StaticRoute> routes) { | ||
this.routes = routes; | ||
} | ||
|
||
} |