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
import ctypes | |
import logging | |
import os | |
import json | |
import onlp.onlp | |
libonlp = onlp.onlp.libonlp | |
class OnlpMixin(object): |
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
package main | |
import ( | |
"fmt" | |
"github.com/spf13/cobra" | |
) | |
func main() { | |
subCmd := &cobra.Command{ | |
Use: "sub", |
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
#! /usr/bin/env python | |
from OFDPA_python import * | |
import sys | |
def addL2UnfilteredInterfaceGroup(port): | |
group_id = new_uint32_tp() | |
uint32_tp_assign(group_id, 0) | |
ofdpaGroupTypeSet(group_id, OFDPA_GROUP_ENTRY_TYPE_L2_UNFILTERED_INTERFACE) |
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
import unittest | |
from fabric.api import local | |
from lib import base | |
from lib.gobgp import * | |
from lib.quagga import * | |
import sys | |
import os | |
import time | |
import nose | |
from noseplugin import OptionParser, parser_option |
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
#!/usr/bin/env python | |
import toml | |
import yaml | |
import json | |
from argparse import ArgumentParser | |
import sys | |
def _camel2snake(camel): | |
snake = ''.join('-{0}'.format(c.lower()) if not c.islower() and i > 0 else c.lower() for i, c in enumerate(camel)) |
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
package main | |
import ( | |
gobgp "github.com/osrg/gobgp/api" | |
"golang.org/x/net/context" | |
"google.golang.org/grpc" | |
"time" | |
) | |
func main() { |
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
package main | |
import ( | |
"fmt" | |
gobgp "github.com/osrg/gobgp/api" | |
"github.com/osrg/gobgp/gobgp/cmd" | |
"github.com/osrg/gobgp/packet" | |
"golang.org/x/net/context" | |
"google.golang.org/grpc" | |
"io" |