Beispiel #1
0
    def stop(self):
        '''
        Stop the static tunnel.
        '''

        self.logger.info("stopping static tunnel '%s'" % self.name)

        gre.get(self.dry_run, self.logger, self.tunnel_name, self.mode, netns=self.netns).remove()

        self.logger.info("finished stopping static tunnel '%s'" % self.name)
Beispiel #2
0
    def stop(self):
        '''
        Stop the mesh tunnel.
        '''

        self.logger.info("stopping mesh tunnel '%s'" % self.name)

        bridge.get(self.dry_run, self.logger, self.bridge_name, root_ipdb=self.root_ipdb).remove()
        veth.get(
            self.dry_run,
            self.logger,
            self.root_veth_name,
            self.netns_veth_name,
            root_ipdb=self.root_ipdb,
        ).remove()
        gre.get(self.dry_run, self.logger, self.name, "gretap", root_ipdb=self.root_ipdb).remove()

        self.logger.info("finished stopping mesh tunnel '%s'" % self.name)