mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
Merge pull request #12304 from th0m/tlefebvre/fix-wrong-drivernetworkmanager-interface
fix: update incorrect DriverNetworkManager interface implementation
This commit is contained in:
@@ -670,8 +670,10 @@ func (d *Driver) GetHandle(taskID string) *taskHandle {
|
||||
return h
|
||||
}
|
||||
|
||||
func (d *Driver) CreateNetwork(allocID string) (*drivers.NetworkIsolationSpec, error) {
|
||||
return nil, nil
|
||||
var _ drivers.DriverNetworkManager = (*Driver)(nil)
|
||||
|
||||
func (d *Driver) CreateNetwork(allocID string, request *drivers.NetworkCreateRequest) (*drivers.NetworkIsolationSpec, bool, error) {
|
||||
return nil, true, nil
|
||||
}
|
||||
|
||||
func (d *Driver) DestroyNetwork(allocID string, spec *drivers.NetworkIsolationSpec) error {
|
||||
|
||||
@@ -468,7 +468,9 @@ func (d *driverPluginClient) ExecTaskStreamingRaw(ctx context.Context,
|
||||
}
|
||||
}
|
||||
|
||||
func (d *driverPluginClient) CreateNetwork(allocID string) (*NetworkIsolationSpec, bool, error) {
|
||||
var _ DriverNetworkManager = (*driverPluginClient)(nil)
|
||||
|
||||
func (d *driverPluginClient) CreateNetwork(allocID string, _ *NetworkCreateRequest) (*NetworkIsolationSpec, bool, error) {
|
||||
req := &proto.CreateNetworkRequest{
|
||||
AllocId: allocID,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user