-vicn (1.0-25~g009e5b9~b1) UNRELEASED; urgency=medium
+vicn (0.1-1) UNRELEASED; urgency=medium
- * Initial release (Closes: #nnnn)
+ * Initial release. (Closes: #XXXXXX)
Source: vicn
-Version: 3.23
Section: python
Priority: optional
X-Python3-Version: >= 3.5
Package: python3-netmodel
-Version: 3.23
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}, python3-daemon, python3-lockfile, python3-setuptools, python3-pip
Suggests: python-netmodel-doc
Netmodel
Package: netmon
-Version: 3.23
Architecture: all
-Depends: ${python3:Depends}, ${misc:Depends}, python3-netmodel
+Depends: ${python3:Depends}, ${misc:Depends}, python3-netmodel, bwm-ng
Suggests: netmon-doc
Description: Monitoring
Monitoring daemon
Package: vicn
-Version: 3.23
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}, python3-netmodel
Suggests: vicn-doc
The master, vICN, controls the whole cluster of servers, by means of HTTPS REST
APIs and remote SSH.
-#Package: vicn-resource-hicn
-#Architecture: all
-#Depends: vicn
-#Description: TODO
-# TODO
-
#!/bin/bash
-pip3 install --upgrade autobahn
+pip3 install --upgrade pylxd
--- /dev/null
+#!/bin/bash
+
+pip3 install --upgrade autobahn pyopenssl pylxd
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
-override_dh_auto_test:
-
#override_dh_auto_build: export http_proxy=127.0.0.1:9
#override_dh_auto_build: export https_proxy=127.0.0.1:9
#override_dh_auto_build: dh_auto_build
--- /dev/null
+#!/bin/bash
+
+pip3 install --upgrade pylxd
-#!/bin/bash
+k#!/bin/bash
set -euxo pipefail
IFS=$'\n\t'
apt_get=${APT_PATH:-"/usr/local/bin/apt-get"}
BUILD_TOOLS_UBUNTU="build-essential doxygen"
-DEPS_UBUNTU="devscripts debhelper python3-all python3-setuptools python3-docutils python3-sphinx python3-networkx python3-openssl python3-pyparsing python3-pip"
+DEPS_UBUNTU="devscripts debhelper python3-all python3-setuptools python3-docutils python3-sphinx python3-networkx python3-pyparsing python3-pip"
+DEPS_PYTHON="autobahn pyopenssl"
setup() {
# Install package dependencies
if [ $DISTRIB_ID == "Ubuntu" ]; then
echo $BUILD_TOOLS_UBUNTU $DEPS_UBUNTU | xargs sudo ${apt_get} install -y --allow-unauthenticated
+ echo $DEPS_PYTHON | xargs sudo pip3 install --upgrade
fi
# do nothing but print the current slave hostname
EOF
- pushd $SCRIPT_PATH/..
+ mkdir -p $SCRIPT_PATH/../vicn_build_root
+ ls -1 | while read line; do if [ "$line" != "$(basename $SCRIPT_PATH)" ]; then mv $line $SCRIPT_PATH/../vicn_build_root; fi done || true
+ cd $SCRIPT_PATH/../vicn_build_root
+
debuild --no-lintian --no-tgz-check -i -us -uc -b
- popd
+
+ cd $SCRIPT_PATH/..
+ mkdir build
+ mv *.deb build
echo "*******************************************************************"
echo "* $PACKAGE_NAME BUILD SUCCESSFULLY COMPLETED"
pushd $SCRIPT_PATH/..
build_package $PACKAGE_NAME
popd
-
git rev-parse 2> /dev/null
if [ $? == 0 ]; then
- vstring=$(git describe --dirty --match "$version_prefix*" | sed "s/$version_prefix//")
+ vstring=$(git describe --match "$version_prefix*" | sed "s/$version_prefix//")
elif [ -f .version ]; then
vstring=$(cat .version)
else
git rev-parse 2> /dev/null
if [ $? == 0 ]; then
- CMT=$(git describe --dirty --match "$version_prefix*" | sed "s/$version_prefix//" | cut -s -d- -f3,4)
+ CMT=$(git describe --match "$version_prefix*" | sed "s/$version_prefix//" | cut -s -d- -f3,4)
else
CMT=$(echo ${vstring} | cut -s -d- -f3,4)
fi
fi
else
echo ${TAG}-release
-fi
\ No newline at end of file
+fi
--- /dev/null
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+#
+# Copyright (c) 2017 Cisco and/or its affiliates.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+from vicn.core.sa_collections import InstrumentedList
+from netmodel.model.collection import Collection
+
+class Collection(InstrumentedList, Collection):
+ pass