Giter VIP home page Giter VIP logo

onos-cli's People

Contributors

adibrastegarnia avatar agarwal-shivansh avatar andrea-campanella avatar jmajnert avatar kuujo avatar onos-builder avatar raphaelvrosa avatar ray-milkey avatar seancondon avatar shadansari avatar teone avatar tomikazi avatar tweoss avatar woojoong88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

onos-cli's Issues

Add status badges

We need to add status badges to make all of the repos similar (i.e. build, godoc, license, gocard report.

Add an active filter flag for network-changes

As a cli user I would like to filter network-changes to view only active changes so that I can quickly see what changes are active.

Currently you see everything including rollback changes which so remain to be the default, but adding a filter flag could bubble up only those changes which are active as a way to reduce what may be a large change set to only those which are active and of interest due to their active state.

Command 'onos config config set' and 'get' saves to ztp.yaml

The command to save CLI configuration attributes, such as:

  • onos config config set a b OR
  • onos ztp config set c d OR
  • onos topo config set e f

all save the attribute to ~/.onos/ztp.yaml regardless of which subsystem is used

Even though a file is created per subsystem all attributes set in this way are saved in to ztp.yaml

I think this is because the set is going through a viper global variable, which points to the ZTP file rather than any others.

Also if you try to set an attribute on config is will not work until ztp.yaml exists.

I'm not really sure what this system was trying to achieve, so someone that does should tackle it

Get cells command in ransim seems not working properly

func runGetCellsCommand(cmd *cobra.Command, args []string) error {
if noHeaders, _ := cmd.Flags().GetBool("no-headers"); !noHeaders {
cli.Output("%-17s %7s %7s %7s %9s %9s %7s %7s %10s %7s %7s %10s %10s %8s %8s %4s %4s %s\n",
"NCGI", "#UEs", "Max UEs", "TxDB", "Lat", "Lng", "Azimuth", "Arc",
"A3Offset", "TTT", "A3Hyst", "PCellOffset", "FreqOffset", "PCI", "Color", "Idle", "Conn", "Neighbors(NCellOffset)")
}
client, conn, err := getCellClient(cmd)
if err != nil {
return err
}
defer conn.Close()
if watch, _ := cmd.Flags().GetBool("watch"); watch {
stream, err := client.WatchCells(context.Background(), &modelapi.WatchCellsRequest{NoReplay: false})
if err != nil {
return err
}
for {
r, err := stream.Recv()
if err != nil {
break
}
cell := r.Cell
cli.Output("%-17x %7d %7d %7.2f %9.3f %9.3f %7d %7d %10d %7d %7d %10d %10d %8d %8s %4d %4d %s\n",
cell.NCGI, len(cell.CrntiMap), cell.MaxUEs, cell.TxPowerdB,
cell.Location.Lat, cell.Location.Lng, cell.Sector.Azimuth, cell.Sector.Arc,
cell.MeasurementParams.EventA3Params.A3Offset, cell.MeasurementParams.TimeToTrigger, cell.MeasurementParams.Hysteresis,
cell.MeasurementParams.EventA3Params.A3Offset, cell.MeasurementParams.FrequencyOffset, cell.Pci, cell.Color,
cell.RrcIdleCount, cell.RrcConnectedCount, catNCGIsWithOcn(cell.Neighbors, cell.MeasurementParams.NcellIndividualOffsets))
}
} else {
stream, err := client.ListCells(context.Background(), &modelapi.ListCellsRequest{})
if err != nil {
return err
}
for {
r, err := stream.Recv()
if err != nil {
break
}
cell := r.Cell
cli.Output("%-17x %7d %7d %7.2f %9.3f %9.3f %7d %7d %10d %7d %7d %10d %10d %8d %8s %4d, %4d, %s\n",
cell.NCGI, len(cell.CrntiMap), cell.MaxUEs, cell.TxPowerdB,
cell.Location.Lat, cell.Location.Lng, cell.Sector.Azimuth, cell.Sector.Arc,
cell.MeasurementParams.EventA3Params.A3Offset, cell.MeasurementParams.TimeToTrigger, cell.MeasurementParams.Hysteresis,
cell.MeasurementParams.EventA3Params.A3Offset, cell.MeasurementParams.FrequencyOffset, cell.Pci, cell.Color,
cell.RrcIdleCount, cell.RrcConnectedCount, catNCGIsWithOcn(cell.Neighbors, cell.MeasurementParams.NcellIndividualOffsets))
}
}
return nil
}

It seems that get cells command print A3Offset (EventA3Params) instead of PCellIndividualOffset.
A3Offset is printed twice and I think L145 and L166 should be fixed.

Running command "onos topo get devices -" crashes onos-topo

I entered this command by mistake - I intended it to end in -v

~ $ onos topo get devices -
Error: rpc error: code = Unavailable desc = transport is closing
~ $

Fair enough - it was an invalid entry but you'd think the CLI would not let it through.
onos topo get devices -v
works fine

When watching the state of the pods I can see onos-topo restart

^Cscondon@Z420:~$ kubectl get pods -n onit-1 -w
NAME                                READY   STATUS    RESTARTS   AGE
atomix-controller-fb857b477-7pwhm   1/1     Running   0          27m
device1                             1/1     Running   0          17m
device2                             1/1     Running   0          2m39s
onos-cli-c5b4c7f5f-d68kf            1/1     Running   0          26m
onos-config-6cfdc589ff-dqwvs        1/1     Running   0          26m
onos-config-envoy-56bf9486-j5dkd    1/1     Running   0          26m
onos-gui-866b488884-grpvv           1/1     Running   0          26m
onos-topo-7cfc8f7486-s4s2q          1/1     Running   1          27m
onos-topo-envoy-7778bc79dd-9j9qv    1/1     Running   0          27m
raft-1-0                            1/1     Running   0          27m
onos-topo-7cfc8f7486-s4s2q          0/1     Error     1          28m
onos-topo-7cfc8f7486-s4s2q          0/1     CrashLoopBackOff   1          28m
onos-topo-7cfc8f7486-s4s2q          0/1     Running            2          29m
onos-topo-7cfc8f7486-s4s2q          1/1     Running            2          29m

Docker image for arm64

Hi Team,

I was running onos-cli package on arm64, but it was failing giving the below error:

root@83dd9935a43b:/odidev/onos-cli# make coverage
go build -o build/_output/onos ./cmd/onos
go: github.com/onosproject/[email protected]: reading github.com/onosproject/onos-ric/go.mod at revision v0.6.10: unknown revision v0.6.10
make: *** [Makefile:11: build] Error 1
root@83dd9935a43b:/odidev/onos-cli#

Also, onos-cli docker image is not available for arm64 and one of the dependency of onos-cli (i.e. onos-ric) is a private github repo. Is there any plan to make onos-cli available for arm64 (and to release docker image for arm64)?

Steps followed to run the package:
make coverage

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.