-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Patryk Strusiewicz-Surmacki <[email protected]>
- Loading branch information
1 parent
69de278
commit 2516887
Showing
6 changed files
with
101 additions
and
48 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
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 |
---|---|---|
@@ -1,31 +1,42 @@ | ||
package adapters | ||
|
||
import ( | ||
"context" | ||
"errors" | ||
|
||
"github.com/telekom/das-schiff-network-operator/api/v1alpha1" | ||
"github.com/telekom/das-schiff-network-operator/pkg/agent" | ||
"github.com/telekom/das-schiff-network-operator/pkg/config" | ||
) | ||
|
||
type NetNS struct{} | ||
type netNS struct{} | ||
|
||
func New() (agent.Adapter, error) { | ||
return &NetNS{}, nil | ||
return &netNS{}, nil | ||
} | ||
|
||
func (*NetNS) CheckHealth() error { | ||
func (*netNS) CheckHealth() error { | ||
return errors.ErrUnsupported | ||
} | ||
|
||
func (*NetNS) GetConfig() *config.Config { | ||
func (*netNS) GetConfig() *config.Config { | ||
return nil | ||
} | ||
|
||
func (*NetNS) ReconcileLayer3([]v1alpha1.VRFRouteConfigurationSpec, []v1alpha1.RoutingTableSpec) error { | ||
func (*netNS) ReconcileLayer3([]v1alpha1.VRFRouteConfigurationSpec, []v1alpha1.RoutingTableSpec) error { | ||
return errors.ErrUnsupported | ||
} | ||
|
||
func (*NetNS) ReconcileLayer2([]v1alpha1.Layer2NetworkConfigurationSpec) error { | ||
func (*netNS) ReconcileLayer2([]v1alpha1.Layer2NetworkConfigurationSpec) error { | ||
return errors.ErrUnsupported | ||
} | ||
|
||
type netNSClient struct{} | ||
|
||
func NewClient() agent.Client { | ||
return &netNSClient{} | ||
} | ||
|
||
func (*netNSClient) SendConfig(context.Context, *v1alpha1.NodeConfig) error { | ||
return errors.ErrUnsupported | ||
} |
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
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