Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show default configuration in state commands #2

Closed
ishidawataru opened this issue Aug 21, 2018 · 2 comments
Closed

show default configuration in state commands #2

ishidawataru opened this issue Aug 21, 2018 · 2 comments

Comments

@ishidawataru
Copy link
Member

No description provided.

@Mabuchin
Copy link

Mabuchin commented Sep 6, 2018

In the default command, I want to be able to check the default value for important parameters. For example, modulation-type, GRID and channel are important parameters in synchronization, we would like to check default value.

Also, rather than displaying the default config in oopt opt Opt 1, what is important is the value of the actual default status in oopt opt Opt 1 state.

For example, consider oopt opt opt1 state -v to indicate that all actual status values are displayed.

@ishidawataru
Copy link
Member Author

@Mabuchin please try v0.7.0

root@localhost:~# oopt opt Opt2 -v
{
   "config": {
      "ber-interval": 100,
      "enabled": true,
      "losi": false,
      "modulation-type": "DP_16QAM",
      "name": "Opt2",
      "prbs": false
   },
   "name": "Opt2",
   "optical-module-frequency": {
      "config": {
         "channel": 1,
         "grid": "GRID_50GHZ"
      }
   }
}
root@localhost:~# oopt opt Opt2 state -v
{
   "config": {
      "ber-interval": 100,
      "enabled": true,
      "losi": false,
      "modulation-type": "DP_16QAM",
      "name": "Opt2",
      "prbs": false
   },
   "name": "Opt2",
   "optical-module-frequency": {
      "config": {
         "channel": 1,
         "grid": "GRID_50GHZ"
      }
   },
   "optical-module-rms": {
      "state": {
         "xi": 0,
         "xq": 0,
         "yi": 0,
         "yq": 0
      }
   },
   "state": {
      "channel-stats": {
         "A": {
            "hd-fec-ber": "0.000000e+00",
            "name": "A",
            "post-fec-ber": "0.000000e+00",
            "sd-fec-ber": "0.000000e+00"
         },
         "B": {
            "hd-fec-ber": "0.000000e+00",
            "name": "B",
            "post-fec-ber": "0.000000e+00",
            "sd-fec-ber": "0.000000e+00"
         }
      },
      "operation-status": "STATE_BOOTING_TOP_HALF",
      "sync-error": false
   }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants