blob: 73c585955186ffcd69b57e69656471879de626ba [file] [log] [blame]
Scott Bakeredbb2322018-05-08 11:46:25 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
17import os
18import sys
Scott Bakerc6ed1c42019-01-29 16:57:10 -080019from xossynchronizer.steps.syncstep import SyncStep
Scott Bakeredbb2322018-05-08 11:46:25 -070020from xosconfig import Config
21from multistructlog import create_logger
22
23log = create_logger(Config().get('logging'))
24
25class SyncSimpleExampleServiceInstance(SyncStep):
Scott Bakerc6ed1c42019-01-29 16:57:10 -080026 observes = "SimpleExampleServiceInstance"
Scott Bakeredbb2322018-05-08 11:46:25 -070027 requested_interval = 0
28
Scott Bakeredbb2322018-05-08 11:46:25 -070029 def __init__(self, *args, **kwargs):
30 super(SyncSimpleExampleServiceInstance, self).__init__(*args, **kwargs)
31
32 def sync_record(self, o):
33 # There's nothing to do at this time. Configuration of ExampleServiceInstance is handled by Kubernetes
34 # through config maps, and that all happens in the model policy.
35 #
36 # TODO(smbaker): Consider deleting this sync step
37 pass